From b59245aa3c89b456851845bca5449ad643fd3517 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 17 Nov 2018 23:08:46 +0100 Subject: [PATCH] added infused iron block --- .../ellpeck/naturesaura/blocks/ModBlocks.java | 1 + .../ellpeck/naturesaura/recipes/ModRecipes.java | 3 +++ .../blockstates/infused_iron_block.json | 14 ++++++++++++++ .../assets/naturesaura/lang/en_US.lang | 1 + .../book/en_us/entries/using/altar.json | 2 +- .../naturesaura/recipes/infused_iron.json | 15 +++++++++++++++ .../naturesaura/recipes/infused_iron_block.json | 16 ++++++++++++++++ .../textures/blocks/infused_iron_block.png | Bin 0 -> 788 bytes 8 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/assets/naturesaura/blockstates/infused_iron_block.json create mode 100644 src/main/resources/assets/naturesaura/recipes/infused_iron.json create mode 100644 src/main/resources/assets/naturesaura/recipes/infused_iron_block.json create mode 100644 src/main/resources/assets/naturesaura/textures/blocks/infused_iron_block.png diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/ModBlocks.java b/src/main/java/de/ellpeck/naturesaura/blocks/ModBlocks.java index 13ebaf65..bf3ddb4b 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/ModBlocks.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/ModBlocks.java @@ -33,4 +33,5 @@ public final class ModBlocks { public static final Block HOPPER_UPGRADE = new BlockHopperUpgrade(); public static final Block FIELD_CREATOR = new BlockFieldCreator(); public static final Block OAK_GENERATOR = new BlockOakGenerator(); + public static final Block INFUSED_IRON = new BlockImpl("infused_iron_block", Material.IRON).setSoundType(SoundType.METAL).setHardness(3F); } diff --git a/src/main/java/de/ellpeck/naturesaura/recipes/ModRecipes.java b/src/main/java/de/ellpeck/naturesaura/recipes/ModRecipes.java index 896a6ff1..4f8fcd3a 100644 --- a/src/main/java/de/ellpeck/naturesaura/recipes/ModRecipes.java +++ b/src/main/java/de/ellpeck/naturesaura/recipes/ModRecipes.java @@ -59,6 +59,9 @@ public final class ModRecipes { new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_iron"), new ItemStack(Items.IRON_INGOT), new ItemStack(ModItems.INFUSED_IRON), null, 300, 80).register(); + new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_iron_block"), + new ItemStack(Blocks.IRON_BLOCK), new ItemStack(ModBlocks.INFUSED_IRON), + null, 2700, 700).register(); new AltarRecipe(new ResourceLocation(NaturesAura.MOD_ID, "infused_stone"), new ItemStack(Blocks.STONE), new ItemStack(ModBlocks.INFUSED_STONE), null, 150, 40).register(); diff --git a/src/main/resources/assets/naturesaura/blockstates/infused_iron_block.json b/src/main/resources/assets/naturesaura/blockstates/infused_iron_block.json new file mode 100644 index 00000000..fabb2d7e --- /dev/null +++ b/src/main/resources/assets/naturesaura/blockstates/infused_iron_block.json @@ -0,0 +1,14 @@ +{ + "forge_marker": 1, + "defaults": { + "model": "minecraft:cube_all", + "textures": { + "all": "naturesaura:blocks/infused_iron_block" + }, + "transform": "forge:default-block" + }, + "variants": { + "normal": [{}], + "inventory": [{}] + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/lang/en_US.lang b/src/main/resources/assets/naturesaura/lang/en_US.lang index ff6d26ac..98599282 100644 --- a/src/main/resources/assets/naturesaura/lang/en_US.lang +++ b/src/main/resources/assets/naturesaura/lang/en_US.lang @@ -30,6 +30,7 @@ tile.naturesaura.placer.name=Imperceptible Builder tile.naturesaura.hopper_upgrade.name=Hopper Enhancement tile.naturesaura.field_creator.name=Aura Field Creator tile.naturesaura.oak_generator.name=Canopy Diminisher +tile.naturesaura.infused_iron_block.name=Infused Iron Block item.naturesaura.eye.name=Environmental Eye item.naturesaura.gold_fiber.name=Brilliant Fiber diff --git a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/altar.json b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/altar.json index 807c1b3b..fbb17f49 100644 --- a/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/altar.json +++ b/src/main/resources/assets/naturesaura/patchouli_books/book/en_us/entries/using/altar.json @@ -11,7 +11,7 @@ }, { "type": "naturesaura:altar", - "text": "Creating $(item)Infused Iron$(), a material blessed with the powers of $(aura), allowing it to be used in several magical $(thing)natural items$().", + "text": "Creating $(item)Infused Iron$(), a material blessed with the powers of $(aura), allowing it to be used in several magical $(thing)natural items$().$(br)Note that the same infusion is possible using the materials' block form.", "recipe": "naturesaura:infused_iron" }, { diff --git a/src/main/resources/assets/naturesaura/recipes/infused_iron.json b/src/main/resources/assets/naturesaura/recipes/infused_iron.json new file mode 100644 index 00000000..f8805045 --- /dev/null +++ b/src/main/resources/assets/naturesaura/recipes/infused_iron.json @@ -0,0 +1,15 @@ +{ + "type": "forge:ore_shaped", + "pattern": [ + "I" + ], + "key": { + "I": { + "item": "naturesaura:infused_iron_block" + } + }, + "result": { + "item": "naturesaura:infused_iron", + "count": 9 + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/recipes/infused_iron_block.json b/src/main/resources/assets/naturesaura/recipes/infused_iron_block.json new file mode 100644 index 00000000..0ec2a701 --- /dev/null +++ b/src/main/resources/assets/naturesaura/recipes/infused_iron_block.json @@ -0,0 +1,16 @@ +{ + "type": "forge:ore_shaped", + "pattern": [ + "III", + "III", + "III" + ], + "key": { + "I": { + "item": "naturesaura:infused_iron" + } + }, + "result": { + "item": "naturesaura:infused_iron_block" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/naturesaura/textures/blocks/infused_iron_block.png b/src/main/resources/assets/naturesaura/textures/blocks/infused_iron_block.png new file mode 100644 index 0000000000000000000000000000000000000000..ff1daa3b57c3ed8b5f62d4a235838f747a9236ad GIT binary patch literal 788 zcmV+v1MB>WP)N2bZe?^J zG%hhNG!sB*!~g&Sl1W5CR5(v9liP9&#iClnyMPPcSXL<(6?F)>S4<^28d^6=+ zzQ6#9i4Y(uNGx;F$_4$>?dpMtQ>QQI?7h$KnL^ZavfmS#(^$c2qKGg=qn9c?aja8C zXO8n&Az{z`xnEODE<|Us(w8lzkK0OTo64Ry<=8vcc|5li-)FM7KDU+rVm)ojjON6J z@FY?8xT)lyFWy#jwxMj+miz1XoZpl0HnzG{*1(|9`Mg@CnY1)8oM@<@=Gsbz@P)bt_vwHyGI#Wp4 z37(9Y|1u#`RSwrtaO&h9VSjD|umjjuK6COLMp&ckbk2N(d6$?uB#&JVQ2koNL`HB= zFfEMpQr+!bb~GVRz3hxUZ_a1`5i1%vl@HcbFyCUu%$g$A-T?q}%-j*Ib~it-ykBm_L zQd9N^1~HI8F7x{*o;uT-cU)?_fs7l$6;CyjuZ zG0X!p%m!v}nmu<4kREhG1-(ecJv=CXuIBFM&jUk5q2C8SXb!yNSAg^_?0n)~*gIDB zp4G};WdT5e9nYI{Msjq8^dawm&OgG;<_Ap|R_jP_bnu}Ys`$R_0V-U^d4cgi3M_^v zGJP_V{axryI|hKJMh6AR4|_(%{Z$oK_sh%^YMsM%3hKRpU`AiuHJkz5i}PGRSs2KD z9VN@VC@6j?gH*zhl1lq)%J+L^Exjpf`RyuE((>z~R`PXGtAsyW+GYK2S^ohzxzmV} S&_M_Q0000