From 7b4004721385b58bfe5db67f9f6807214dd8504f Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Sun, 31 Jan 2021 14:53:16 +0300 Subject: [PATCH] Missing tile --- .../ru/betterend/blocks/MissingTileBlock.java | 11 ++++++++++ .../ru/betterend/recipe/CraftingRecipes.java | 7 +++++++ .../java/ru/betterend/registry/EndBlocks.java | 2 ++ .../assets/betterend/lang/en_us.json | 19 +++++++++--------- .../assets/betterend/lang/ru_ru.json | 3 ++- .../betterend/textures/block/missing_tile.png | Bin 0 -> 509 bytes 6 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 src/main/java/ru/betterend/blocks/MissingTileBlock.java create mode 100644 src/main/resources/assets/betterend/textures/block/missing_tile.png diff --git a/src/main/java/ru/betterend/blocks/MissingTileBlock.java b/src/main/java/ru/betterend/blocks/MissingTileBlock.java new file mode 100644 index 00000000..1e361549 --- /dev/null +++ b/src/main/java/ru/betterend/blocks/MissingTileBlock.java @@ -0,0 +1,11 @@ +package ru.betterend.blocks; + +import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; +import net.minecraft.block.Blocks; +import ru.betterend.blocks.basis.BlockBase; + +public class MissingTileBlock extends BlockBase { + public MissingTileBlock() { + super(FabricBlockSettings.copyOf(Blocks.END_STONE)); + } +} diff --git a/src/main/java/ru/betterend/recipe/CraftingRecipes.java b/src/main/java/ru/betterend/recipe/CraftingRecipes.java index 972b817a..0dcafc0b 100644 --- a/src/main/java/ru/betterend/recipe/CraftingRecipes.java +++ b/src/main/java/ru/betterend/recipe/CraftingRecipes.java @@ -171,6 +171,13 @@ public class CraftingRecipes { GridRecipe.make("iron_chandelier", EndBlocks.IRON_CHANDELIER).setShape("I#I", " # ").addMaterial('#', Items.IRON_INGOT).addMaterial('I', EndItems.LUMECORN_ROD).setGroup("end_metal_chandelier").build(); GridRecipe.make("gold_chandelier", EndBlocks.GOLD_CHANDELIER).setShape("I#I", " # ").addMaterial('#', Items.GOLD_INGOT).addMaterial('I', EndItems.LUMECORN_ROD).setGroup("end_metal_chandelier").build(); + + GridRecipe.make("missing_tile", EndBlocks.MISSING_TILE) + .setOutputCount(4) + .setShape("#P", "P#") + .addMaterial('#', EndBlocks.VIOLECITE.stone, EndBlocks.VIOLECITE.bricks, EndBlocks.VIOLECITE.tiles) + .addMaterial('P', Blocks.PURPUR_BLOCK) + .build(); } private static void registerLantern(String name, Block lantern, Block slab) { diff --git a/src/main/java/ru/betterend/registry/EndBlocks.java b/src/main/java/ru/betterend/registry/EndBlocks.java index 322357a2..9fa2a9e2 100644 --- a/src/main/java/ru/betterend/registry/EndBlocks.java +++ b/src/main/java/ru/betterend/registry/EndBlocks.java @@ -61,6 +61,7 @@ import ru.betterend.blocks.LumecornBlock; import ru.betterend.blocks.LumecornSeedBlock; import ru.betterend.blocks.MengerSpongeBlock; import ru.betterend.blocks.MengerSpongeWetBlock; +import ru.betterend.blocks.MissingTileBlock; import ru.betterend.blocks.MossyGlowshroomCapBlock; import ru.betterend.blocks.MossyGlowshroomHymenophoreBlock; import ru.betterend.blocks.MossyGlowshroomSaplingBlock; @@ -135,6 +136,7 @@ public class EndBlocks { public static final StoneMaterial SULPHURIC_ROCK = new StoneMaterial("sulphuric_rock", MaterialColor.BROWN); public static final Block BRIMSTONE = registerBlock("brimstone", new BrimstoneBlock()); public static final Block SULPHUR_CRYSTAL = registerBlock("sulphur_crystal", new SulphurCrystalBlock()); + public static final Block MISSING_TILE = registerBlock("missing_tile", new MissingTileBlock()); public static final Block FLAVOLITE_RUNED = registerBlock("flavolite_runed", new RunedFlavolite()); public static final Block FLAVOLITE_RUNED_ETERNAL = registerBlock("flavolite_runed_eternal", new EternalRunedFlavolite()); diff --git a/src/main/resources/assets/betterend/lang/en_us.json b/src/main/resources/assets/betterend/lang/en_us.json index e98f0319..955bd1ba 100644 --- a/src/main/resources/assets/betterend/lang/en_us.json +++ b/src/main/resources/assets/betterend/lang/en_us.json @@ -78,14 +78,14 @@ "effect.betterend.end_veil": "End Veil", "enchantment.betterend.end_veil": "End Veil", - "item.minecraft.potion.effect.end_veil": "Potion of End Veil", - "item.minecraft.potion.effect.long_end_veil": "Potion of End Veil", - "item.minecraft.splash_potion.effect.end_veil": "Splash potion of End Veil", - "item.minecraft.splash_potion.effect.long_end_veil": "Splash potion of End Veil", - "item.minecraft.lingering_potion.effect.end_veil": "Lingering potion of End Veil", - "item.minecraft.lingering_potion.effect.long_end_veil": "Lingering potion of End Veil", - "item.minecraft.tipped_arrow.effect.end_veil": "Arrow of End Veil", - "item.minecraft.tipped_arrow.effect.long_end_veil": "Arrow of End Veil", + "item.minecraft.potion.effect.end_veil": "Potion Of End Veil", + "item.minecraft.potion.effect.long_end_veil": "Potion Of End Veil", + "item.minecraft.splash_potion.effect.end_veil": "Splash Potion Of End Veil", + "item.minecraft.splash_potion.effect.long_end_veil": "Splash Potion Of End Veil", + "item.minecraft.lingering_potion.effect.end_veil": "Lingering Potion Of End Veil", + "item.minecraft.lingering_potion.effect.long_end_veil": "Lingering Potion Of End Veil", + "item.minecraft.tipped_arrow.effect.end_veil": "ARrow Of End Veil", + "item.minecraft.tipped_arrow.effect.long_end_veil": "ARrow Of End Veil", "block.betterend.mossy_glowshroom_sapling": "Mossy Glowshroom Sapling", "block.betterend.mossy_glowshroom_cap": "Mossy Glowshroom Cap", @@ -656,5 +656,6 @@ "item.betterend.thallasium_chestplate": "Thallasium Chestplate", "item.betterend.thallasium_hammer": "Thallasium Hammer", "item.betterend.thallasium_helmet": "Thallasium Helmet", - "item.betterend.thallasium_leggings": "Thallasium Leggings" + "item.betterend.thallasium_leggings": "Thallasium Leggings", + "block.betterend.missing_tile": "Missing Tile" } diff --git a/src/main/resources/assets/betterend/lang/ru_ru.json b/src/main/resources/assets/betterend/lang/ru_ru.json index 1c20c6fe..8b988c95 100644 --- a/src/main/resources/assets/betterend/lang/ru_ru.json +++ b/src/main/resources/assets/betterend/lang/ru_ru.json @@ -676,5 +676,6 @@ "item.betterend.thallasium_chestplate": "Талласиевый нагрудник", "item.betterend.thallasium_hammer": "Талласиевый молот", "item.betterend.thallasium_helmet": "Талласиевый шлем", - "item.betterend.thallasium_leggings": "Талласиевые поножи" + "item.betterend.thallasium_leggings": "Талласиевые поножи", + "block.betterend.missing_tile": "Отсутствующая плитка" } \ No newline at end of file diff --git a/src/main/resources/assets/betterend/textures/block/missing_tile.png b/src/main/resources/assets/betterend/textures/block/missing_tile.png new file mode 100644 index 0000000000000000000000000000000000000000..75779b386801c94920a905bdc9df6afea9a21d9b GIT binary patch literal 509 zcmVPx$w@E}nR5*==l0j-4F&Krv%m`-eSh#XJg)w0$4TM7P(;mi`=qa*s50OO{g`S`e zUUW8I3`Q}U*b-3wI5#o|e8jn*2a6k)X1)OF3x<#*Z#gV`D6 zR03dj27uLejnG=NTrQDP#>+woilU%t8rq5B=I0NjI7g131@?ydti;$B0U)KMEK7tC z066EUs*25KGrTO$`SkuHws+)7hRi2iUtDo}e>XS)=(_I34kM=$IhKr)93bxKHssE- z4DUTzmI0uYijK_Qa2Q)`@1jT$79q3up04ZSIZXI4+dGt)0&wVU6c$=*ilU&ZDwI;O z4W(2Rn$JqEFRo%FfXTaIi@L69nuexn@ZLw;-g}HOtkN~cw%p#|4FY3{*$=Laf8^}X zw_i{H_8hFQwrhTW-SQeIqJ4P1=eIZ!q316jK6B_Tqa^1rwp8l!X#0c{=NxI8MovVi z#3OiUmyundqV&kTquaw?h6N=`WuLPVj!NfMN7?-(Wd5Fzwz+nD*3 z4d;#yh1r?^_H6csw>S~2?aQ7|yEgujw>bF=;Hx6uf15EW00000NkvXXu0mjfIXUVe literal 0 HcmV?d00001