Skip to content

Commit 0e2a6e6

Browse files
committed
add missing keybind category title to en_us & fix jetpack enchantments missing when picking up using wrench/pickaxe
1 parent cff8222 commit 0e2a6e6

File tree

6 files changed

+17
-23
lines changed

6 files changed

+17
-23
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
e0b5dd63814e40c825622f4a65f2bdf816561ad9 assets/create_jetpack/blockstates/jetpack.json
22
a265a500a0c29f941cb158718512abf3cf7ab6f1 assets/create_jetpack/blockstates/netherite_jetpack.json
3-
0f66f52f3d430725c0a35aaa424b8441ed5271be assets/create_jetpack/lang/en_ud.json
4-
fe28bac1b3c53009dfd50206115834576261bfb2 assets/create_jetpack/lang/en_us.json
3+
2390b1ac76e464aaa31a8d9a96e3a22974864348 assets/create_jetpack/lang/en_ud.json
4+
bcaf699f7d3faec1e914aa38e8772cfd970158b8 assets/create_jetpack/lang/en_us.json
55
e0bae5867d547956d13f7d044aa12cac27a7e1ff assets/create_jetpack/models/block/jetpack.json
66
5a61519dda46943ae461aa57712463a12d889405 assets/create_jetpack/models/block/netherite_jetpack.json
77
6657196f9547425f62f474797d4b717bf0807e2f assets/create_jetpack/models/item/jetpack.json
88
3652f8f7b454940050f090ab32d38e04b93e14f8 assets/create_jetpack/models/item/jetpack_placeable.json
99
a765123500d1e47eda40673e0b7d7b552ef3e03a assets/create_jetpack/models/item/netherite_jetpack.json
1010
3652f8f7b454940050f090ab32d38e04b93e14f8 assets/create_jetpack/models/item/netherite_jetpack_placeable.json
1111
b7af399e696578d85930f7533fb28d2bfcc9aadb data/create/tags/items/pressurized_air_sources.json
12-
e0538e8a80c9d8461f64679a226064f574c7e007 data/create_jetpack/loot_tables/blocks/jetpack.json
13-
e876bf28e55e11edbff898471303a600f67f50d9 data/create_jetpack/loot_tables/blocks/netherite_jetpack.json
12+
9fecd2df067a7650535b262f7ef49152c0aee543 data/create_jetpack/loot_tables/blocks/jetpack.json
13+
64a9689f072509bc4fd73d8e1984638bbfdba582 data/create_jetpack/loot_tables/blocks/netherite_jetpack.json
1414
b7af399e696578d85930f7533fb28d2bfcc9aadb data/minecraft/tags/blocks/mineable/pickaxe.json

src/generated/resources/assets/create_jetpack/lang/en_ud.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"item.create_jetpack.netherite_jetpack.tooltip.control3": "]\u2141[ ss\u01DD\u0279\u0500",
2525
"item.create_jetpack.netherite_jetpack.tooltip.control4": "]H[ ss\u01DD\u0279\u0500",
2626
"item.create_jetpack.netherite_jetpack.tooltip.summary": "\u0279\u0131\u0250 p\u01DDz\u0131\u0279nss\u01DD\u0279d bu\u0131sn uo\u0131\u0287\u0250\u0287\u0131\u028C\u01DD\u05DF s\u028Do\u05DF\u05DF\u2C6F",
27-
"item.create_jetpack.netherite_jetpack_placeable": "\u01DD\u05DFq\u0250\u01DD\u0254\u0250\u05DF\u0500 \u029E\u0254\u0250d\u0287\u01DD\u017F \u01DD\u0287\u0131\u0279\u01DD\u0265\u0287\u01DDN"
27+
"item.create_jetpack.netherite_jetpack_placeable": "\u01DD\u05DFq\u0250\u01DD\u0254\u0250\u05DF\u0500 \u029E\u0254\u0250d\u0287\u01DD\u017F \u01DD\u0287\u0131\u0279\u01DD\u0265\u0287\u01DDN",
28+
"key.categories.movement.jetpack": "\u029E\u0254\u0250d\u0287\u01DD\u017F \u01DD\u0287\u0250\u01DD\u0279\u0186"
2829
}

src/generated/resources/assets/create_jetpack/lang/en_us.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"item.create_jetpack.netherite_jetpack.tooltip.control3": "Press [G]",
2525
"item.create_jetpack.netherite_jetpack.tooltip.control4": "Press [H]",
2626
"item.create_jetpack.netherite_jetpack.tooltip.summary": "Allows levitation using pressurized air",
27-
"item.create_jetpack.netherite_jetpack_placeable": "Netherite Jetpack Placeable"
27+
"item.create_jetpack.netherite_jetpack_placeable": "Netherite Jetpack Placeable",
28+
"key.categories.movement.jetpack": "Create Jetpack"
2829
}

src/generated/resources/data/create_jetpack/loot_tables/blocks/jetpack.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
{
99
"type": "minecraft:item",
1010
"functions": [
11-
{
12-
"function": "minecraft:copy_name",
13-
"source": "block_entity"
14-
},
1511
{
1612
"function": "minecraft:copy_nbt",
1713
"source": "block_entity",
@@ -28,9 +24,9 @@
2824
"source": "block_entity",
2925
"ops": [
3026
{
31-
"source": "Enchantments",
32-
"target": "Enchantments",
33-
"op": "replace"
27+
"source": "VanillaTag",
28+
"target": "{}",
29+
"op": "merge"
3430
}
3531
]
3632
}

src/generated/resources/data/create_jetpack/loot_tables/blocks/netherite_jetpack.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
{
99
"type": "minecraft:item",
1010
"functions": [
11-
{
12-
"function": "minecraft:copy_name",
13-
"source": "block_entity"
14-
},
1511
{
1612
"function": "minecraft:copy_nbt",
1713
"source": "block_entity",
@@ -28,9 +24,9 @@
2824
"source": "block_entity",
2925
"ops": [
3026
{
31-
"source": "Enchantments",
32-
"target": "Enchantments",
33-
"op": "replace"
27+
"source": "VanillaTag",
28+
"target": "{}",
29+
"op": "merge"
3430
}
3531
]
3632
}

src/main/kotlin/com/possible_triangle/create_jetpack/Content.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import net.minecraft.world.level.block.Block
4040
import net.minecraft.world.level.storage.loot.LootPool
4141
import net.minecraft.world.level.storage.loot.LootTable
4242
import net.minecraft.world.level.storage.loot.entries.LootItem
43-
import net.minecraft.world.level.storage.loot.functions.CopyNameFunction
4443
import net.minecraft.world.level.storage.loot.functions.CopyNbtFunction
4544
import net.minecraft.world.level.storage.loot.predicates.ExplosionCondition
4645
import net.minecraft.world.level.storage.loot.providers.nbt.ContextNbtProvider
@@ -125,14 +124,13 @@ object Content {
125124
.setRolls(ConstantValue.exactly(1F))
126125
.add(
127126
LootItem.lootTableItem(getItem())
128-
.apply(CopyNameFunction.copyName(CopyNameFunction.NameSource.BLOCK_ENTITY))
129127
.apply(
130128
CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY)
131129
.copy("Air", "Air")
132130
)
133131
.apply(
134132
CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY)
135-
.copy("Enchantments", "Enchantments")
133+
.copy("VanillaTag", "{}", CopyNbtFunction.MergeStrategy.MERGE)
136134
)
137135
)
138136
)
@@ -182,6 +180,8 @@ object Content {
182180
fun register(modBus: IEventBus) {
183181
REGISTRATE.registerEventListeners(modBus)
184182

183+
REGISTRATE.addRawLang("key.categories.movement.jetpack", "Create Jetpack")
184+
185185
LOADING_CONTEXT.registerConfig(ModConfig.Type.COMMON, Configs.SERVER_SPEC)
186186
LOADING_CONTEXT.registerConfig(ModConfig.Type.CLIENT, Configs.CLIENT_SPEC)
187187

0 commit comments

Comments
 (0)