Skip to content

Commit

Permalink
fix jetpack loottable by applying nbt functions in the correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Sep 20, 2024
1 parent 255a0e1 commit 6df8d13
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/generated/resources/.cache/cache
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ e0bae5867d547956d13f7d044aa12cac27a7e1ff assets/create_jetpack/models/block/jetp
a765123500d1e47eda40673e0b7d7b552ef3e03a assets/create_jetpack/models/item/netherite_jetpack.json
3652f8f7b454940050f090ab32d38e04b93e14f8 assets/create_jetpack/models/item/netherite_jetpack_placeable.json
b7af399e696578d85930f7533fb28d2bfcc9aadb data/create/tags/items/pressurized_air_sources.json
9fecd2df067a7650535b262f7ef49152c0aee543 data/create_jetpack/loot_tables/blocks/jetpack.json
64a9689f072509bc4fd73d8e1984638bbfdba582 data/create_jetpack/loot_tables/blocks/netherite_jetpack.json
9f37968900dc751f4649772a20232f35ea367fb9 data/create_jetpack/loot_tables/blocks/jetpack.json
59dc7a4ced7e4b35fb91bf4b18e10e798b563748 data/create_jetpack/loot_tables/blocks/netherite_jetpack.json
b7af399e696578d85930f7533fb28d2bfcc9aadb data/minecraft/tags/blocks/mineable/pickaxe.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"source": "block_entity",
"ops": [
{
"source": "Air",
"target": "Air",
"op": "replace"
"source": "VanillaTag",
"target": "{}",
"op": "merge"
}
]
},
Expand All @@ -24,9 +24,9 @@
"source": "block_entity",
"ops": [
{
"source": "VanillaTag",
"target": "{}",
"op": "merge"
"source": "Air",
"target": "Air",
"op": "replace"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"source": "block_entity",
"ops": [
{
"source": "Air",
"target": "Air",
"op": "replace"
"source": "VanillaTag",
"target": "{}",
"op": "merge"
}
]
},
Expand All @@ -24,9 +24,9 @@
"source": "block_entity",
"ops": [
{
"source": "VanillaTag",
"target": "{}",
"op": "merge"
"source": "Air",
"target": "Air",
"op": "replace"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ 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.kinetics.BlockStressDefaults
Expand Down Expand Up @@ -126,11 +124,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")
)
)
)
Expand Down

0 comments on commit 6df8d13

Please sign in to comment.