diff --git a/src/generated/resources/.cache/b891e330939b98a41dfd3d8d22172eefce029f74 b/src/generated/resources/.cache/b891e330939b98a41dfd3d8d22172eefce029f74 index 63cb4ef..0fea304 100644 --- a/src/generated/resources/.cache/b891e330939b98a41dfd3d8d22172eefce029f74 +++ b/src/generated/resources/.cache/b891e330939b98a41dfd3d8d22172eefce029f74 @@ -1,4 +1,4 @@ -// 1.20.1 2024-09-13T10:27:23.1037164 Registrate Provider for create_jetpack [Recipes, Advancements, Loot Tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)] +// 1.20.1 2024-09-20T12:08:10.3392817 Registrate Provider for create_jetpack [Recipes, Advancements, Loot Tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)] 673a48952547e61209ce76274272e9c4e05c8189 assets/create_jetpack/blockstates/jetpack.json ba8e314e1e6dbb6c25dd5e837cef04f8d96412a1 assets/create_jetpack/blockstates/netherite_jetpack.json a2f5d170a0eb9d1686d1c97de51bdb52eee864af assets/create_jetpack/lang/en_ud.json @@ -10,6 +10,6 @@ a9f4853187ae09ad01356339f4acf9b3e8189ebd assets/create_jetpack/models/block/neth f01edd57ce03744767e9ab7b7e68c80d9834a50c assets/create_jetpack/models/item/netherite_jetpack.json 6c53b1a6ed28929b7a0a090edf6101e610f842fc assets/create_jetpack/models/item/netherite_jetpack_placeable.json 45715b49eb3f91a62054f6c2a9d82115b8e188fb data/create/tags/items/pressurized_air_sources.json -04e37ca748611d77665e04326b133ad24f1e10a5 data/create_jetpack/loot_tables/blocks/jetpack.json -81f9ea6d670c6740c897b98d16301ff51c3860c1 data/create_jetpack/loot_tables/blocks/netherite_jetpack.json +4286224b5da14d4ff94cc9952af451274632589f data/create_jetpack/loot_tables/blocks/jetpack.json +3908eaf81ead088de7365ec3572694e9ed2bf3cb data/create_jetpack/loot_tables/blocks/netherite_jetpack.json 45715b49eb3f91a62054f6c2a9d82115b8e188fb data/minecraft/tags/blocks/mineable/pickaxe.json diff --git a/src/generated/resources/data/create_jetpack/loot_tables/blocks/jetpack.json b/src/generated/resources/data/create_jetpack/loot_tables/blocks/jetpack.json index 88d5a3d..aa9b2e5 100644 --- a/src/generated/resources/data/create_jetpack/loot_tables/blocks/jetpack.json +++ b/src/generated/resources/data/create_jetpack/loot_tables/blocks/jetpack.json @@ -16,9 +16,9 @@ "function": "minecraft:copy_nbt", "ops": [ { - "op": "replace", - "source": "Air", - "target": "Air" + "op": "merge", + "source": "VanillaTag", + "target": "{}" } ], "source": "block_entity" @@ -27,9 +27,9 @@ "function": "minecraft:copy_nbt", "ops": [ { - "op": "merge", - "source": "VanillaTag", - "target": "{}" + "op": "replace", + "source": "Air", + "target": "Air" } ], "source": "block_entity" diff --git a/src/generated/resources/data/create_jetpack/loot_tables/blocks/netherite_jetpack.json b/src/generated/resources/data/create_jetpack/loot_tables/blocks/netherite_jetpack.json index c1080d8..8a14623 100644 --- a/src/generated/resources/data/create_jetpack/loot_tables/blocks/netherite_jetpack.json +++ b/src/generated/resources/data/create_jetpack/loot_tables/blocks/netherite_jetpack.json @@ -16,9 +16,9 @@ "function": "minecraft:copy_nbt", "ops": [ { - "op": "replace", - "source": "Air", - "target": "Air" + "op": "merge", + "source": "VanillaTag", + "target": "{}" } ], "source": "block_entity" @@ -27,9 +27,9 @@ "function": "minecraft:copy_nbt", "ops": [ { - "op": "merge", - "source": "VanillaTag", - "target": "{}" + "op": "replace", + "source": "Air", + "target": "Air" } ], "source": "block_entity" diff --git a/src/main/kotlin/com/possible_triangle/create_jetpack/Content.kt b/src/main/kotlin/com/possible_triangle/create_jetpack/Content.kt index 30a57c1..37ee63e 100644 --- a/src/main/kotlin/com/possible_triangle/create_jetpack/Content.kt +++ b/src/main/kotlin/com/possible_triangle/create_jetpack/Content.kt @@ -8,12 +8,8 @@ import com.possible_triangle.create_jetpack.item.JetpackItem import com.simibubi.create.AllCreativeModeTabs import com.simibubi.create.AllTags.AllItemTags import com.simibubi.create.Create -import com.simibubi.create.content.equipment.armor.AllArmorMaterials -import com.simibubi.create.content.equipment.armor.BacktankBlockEntity -import com.simibubi.create.content.equipment.armor.BacktankInstance +import com.simibubi.create.content.equipment.armor.* import com.simibubi.create.content.equipment.armor.BacktankItem.BacktankBlockItem -import com.simibubi.create.content.equipment.armor.BacktankRenderer -import com.simibubi.create.content.equipment.armor.BacktankUtil import com.simibubi.create.content.kinetics.BlockStressDefaults import com.simibubi.create.foundation.data.CreateRegistrate import com.simibubi.create.foundation.data.SharedProperties @@ -126,11 +122,11 @@ object Content { LootItem.lootTableItem(getItem()) .apply( CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY) - .copy("Air", "Air") + .copy("VanillaTag", "{}", CopyNbtFunction.MergeStrategy.MERGE) ) .apply( CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY) - .copy("VanillaTag", "{}", CopyNbtFunction.MergeStrategy.MERGE) + .copy("Air", "Air") ) ) ) @@ -147,7 +143,7 @@ object Content { transform { it.tab(AllCreativeModeTabs.BASE_CREATIVE_TAB.key!!) { mod -> mod.accept(ItemStack(it.entry).apply { - orCreateTag.putFloat("Air", BacktankUtil.maxAir(this).toFloat()) + orCreateTag.putInt("Air", BacktankUtil.maxAirWithoutEnchants()) }) } }