From e745a7c374ad462ecd5e4557cb52f9d3139465ee Mon Sep 17 00:00:00 2001 From: YocyCraft Date: Wed, 18 Dec 2024 17:54:54 +0800 Subject: [PATCH] Add JEI information --- src/generated/resources/assets/anvilcraft/lang/en_ud.json | 1 + src/generated/resources/assets/anvilcraft/lang/en_us.json | 1 + src/main/java/dev/dubhe/anvilcraft/data/lang/JeiLang.java | 3 +++ .../dubhe/anvilcraft/integration/jei/AnvilCraftJeiPlugin.java | 3 +++ 4 files changed, 8 insertions(+) diff --git a/src/generated/resources/assets/anvilcraft/lang/en_ud.json b/src/generated/resources/assets/anvilcraft/lang/en_ud.json index 9de6ee448..ce9127ff0 100644 --- a/src/generated/resources/assets/anvilcraft/lang/en_ud.json +++ b/src/generated/resources/assets/anvilcraft/lang/en_ud.json @@ -430,6 +430,7 @@ "itemGroup.anvilcraft.tools": "sǝıʇıןıʇ∩ :ʇɟɐɹƆןıʌuⱯ", "jei.anvilcraft.info.capacitor": "˙ʇı uıɐʇqo oʇ ɹǝbɹɐɥɔ ǝɥʇ uı ɹoʇıɔɐdɐɔ ʎʇdɯǝ ǝɥʇ ǝbɹɐɥɔ uɐɔ noʎ", "jei.anvilcraft.info.craw_claw": "˙ɹǝʇɐʍ ǝɥʇ uı pǝɔɐןd sdɐɹʇ qɐɹɔ ɯoɹɟ sıɥʇ uıɐʇqo uɐɔ noʎ", + "jei.anvilcraft.info.end_dust": "˙ןɐʇɹod puǝ ɥbnoɹɥʇ ןןɐɟ uǝɥʍ ʇsnᗡ puƎ oʇuı pǝʇɹǝʌuoɔ ǝq ןןıʍ 'bbƎ uobɐɹᗡ puɐ sןıʌuɐ ɹoɟ ʇdǝɔxǝ 'ʞɔoןq buıןןɐɟ ʎuⱯ", "jei.anvilcraft.info.geode_1": "˙buısn uǝɥʍ ʎqɹɐǝu sǝpoǝ⅁ ʇsʎɥʇǝɯⱯ spuıℲ", "jei.anvilcraft.info.geode_2": "˙sʞɔoןq ʇsʎɥʇǝɯⱯ buıppnᗺ ʎq pǝddoɹᗡ", "jei.anvilcraft.info.geode_3": "ʇsǝɥƆ snuoᗺ ǝɥʇ uı ʇı puıɟ osןɐ uɐɔ noʎ", diff --git a/src/generated/resources/assets/anvilcraft/lang/en_us.json b/src/generated/resources/assets/anvilcraft/lang/en_us.json index 904671663..334b00182 100644 --- a/src/generated/resources/assets/anvilcraft/lang/en_us.json +++ b/src/generated/resources/assets/anvilcraft/lang/en_us.json @@ -430,6 +430,7 @@ "itemGroup.anvilcraft.tools": "AnvilCraft: Utilities", "jei.anvilcraft.info.capacitor": "You can charge the empty capacitor in the charger to obtain it.", "jei.anvilcraft.info.craw_claw": "You can obtain this from crab traps placed in the water.", + "jei.anvilcraft.info.end_dust": "Any falling block, except for anvils and Dragon Egg, will be converted into End Dust when fall through end portal.", "jei.anvilcraft.info.geode_1": "Finds Amethyst Geodes nearby when using.", "jei.anvilcraft.info.geode_2": "Dropped by Budding Amethyst blocks.", "jei.anvilcraft.info.geode_3": "You can also find it in the Bonus Chest", diff --git a/src/main/java/dev/dubhe/anvilcraft/data/lang/JeiLang.java b/src/main/java/dev/dubhe/anvilcraft/data/lang/JeiLang.java index d02109178..09554276d 100644 --- a/src/main/java/dev/dubhe/anvilcraft/data/lang/JeiLang.java +++ b/src/main/java/dev/dubhe/anvilcraft/data/lang/JeiLang.java @@ -62,5 +62,8 @@ public static void init(RegistrateLangProvider provider) { provider.add("jei.anvilcraft.info.craw_claw", "You can obtain this from crab traps placed in the water."); provider.add("jei.anvilcraft.info.capacitor", "You can charge the empty capacitor in the charger to obtain it."); + + provider.add("jei.anvilcraft.info.end_dust", "Any falling block, except for anvils and Dragon Egg, will be " + + "converted into End Dust when fall through end portal."); } } diff --git a/src/main/java/dev/dubhe/anvilcraft/integration/jei/AnvilCraftJeiPlugin.java b/src/main/java/dev/dubhe/anvilcraft/integration/jei/AnvilCraftJeiPlugin.java index d1a092b2e..c5a8455b9 100644 --- a/src/main/java/dev/dubhe/anvilcraft/integration/jei/AnvilCraftJeiPlugin.java +++ b/src/main/java/dev/dubhe/anvilcraft/integration/jei/AnvilCraftJeiPlugin.java @@ -136,6 +136,9 @@ public void registerRecipes(IRecipeRegistration registration) { registration.addItemStackInfo( new ItemStack(ModItems.CAPACITOR.get()), Component.translatable("jei.anvilcraft.info.capacitor")); + registration.addItemStackInfo( + ModBlocks.END_DUST.asStack(), + Component.translatable("jei.anvilcraft.info.end_dust")); } @Override