Thalassium Block & recipes

This commit is contained in:
paulevsGitch 2021-01-20 22:27:29 +03:00
parent bf8234a02e
commit 04e3372e2b
8 changed files with 29 additions and 2 deletions

View file

@ -3,6 +3,7 @@ package ru.betterend.recipe;
import net.minecraft.block.Blocks;
import net.minecraft.item.Items;
import ru.betterend.recipe.builders.AlloyingRecipe;
import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndItems;
public class AlloyingRecipes {
@ -35,5 +36,17 @@ public class AlloyingRecipes {
.setExpiriense(4.5F)
.setSmeltTime(600)
.build();
AlloyingRecipe.Builder.create("terminite_ingot_thalassium")
.setInput(EndItems.THALASSIUM_INGOT, EndItems.ENDER_DUST)
.setOutput(EndItems.TERMINITE_INGOT, 1)
.setExpiriense(2.5F)
.setSmeltTime(450)
.build();
AlloyingRecipe.Builder.create("thalassium_ingot")
.setInput(EndBlocks.THALASSIUM_ORE, EndBlocks.THALASSIUM_ORE)
.setOutput(EndItems.THALASSIUM_INGOT, 3)
.setExpiriense(2.1F)
.setSmeltTime(600)
.build();
}
}

View file

@ -189,6 +189,14 @@ public class CraftingRecipes {
.build();
GridRecipe.make("fiber_string", Items.STRING).setOutputCount(6).setShape("#", "#", "#").addMaterial('#', EndItems.SILK_FIBER).build();
GridRecipe.make("thalassium_block", EndBlocks.THALASSIUM_BLOCK).setShape("###", "###", "###").addMaterial('#', EndItems.THALASSIUM_INGOT).build();
GridRecipe.make("thalassium_ingot_from_block", EndItems.THALASSIUM_INGOT).setOutputCount(9).setList("#").addMaterial('#', EndBlocks.THALASSIUM_BLOCK).build();
GridRecipe.make("thalassium_axe", EndItems.THALASSIUM_AXE).setShape("##", "#I", " I").addMaterial('#', EndItems.THALASSIUM_INGOT).addMaterial('I', Items.STICK).build();
GridRecipe.make("thalassium_axe", EndItems.THALASSIUM_HOE).setShape("##", " I", " I").addMaterial('#', EndItems.THALASSIUM_INGOT).addMaterial('I', Items.STICK).build();
GridRecipe.make("thalassium_axe", EndItems.THALASSIUM_PICKAXE).setShape("###", " I ", " I ").addMaterial('#', EndItems.THALASSIUM_INGOT).addMaterial('I', Items.STICK).build();
GridRecipe.make("thalassium_axe", EndItems.THALASSIUM_SWORD).setShape("#", "#", "I").addMaterial('#', EndItems.THALASSIUM_INGOT).addMaterial('I', Items.STICK).build();
}
private static void registerLantern(String name, Block lantern, Block slab) {

View file

@ -13,5 +13,6 @@ public class FurnaceRecipes {
FurnaceRecipe.make("end_berry", EndItems.SHADOW_BERRY_RAW, EndItems.SHADOW_BERRY_COOKED).build();
FurnaceRecipe.make("end_fish", EndItems.END_FISH_RAW, EndItems.END_FISH_COOKED).build();
FurnaceRecipe.make("slime_ball", EndBlocks.JELLYSHROOM_CAP_PURPLE, Items.SLIME_BALL).build();
FurnaceRecipe.make("thalassium_ingot_furnace", EndBlocks.THALASSIUM_ORE, EndItems.THALASSIUM_INGOT).build();
}
}

View file

@ -287,6 +287,7 @@ public class EndBlocks {
// Materials //
public static final Block TERMINITE_BLOCK = registerBlock("terminite_block", new TerminiteBlock());
public static final Block AETERNIUM_BLOCK = registerBlock("aeternium_block", new AeterniumBlock());
public static final Block THALASSIUM_BLOCK = registerBlock("thalassium_block", new BaseBlock(FabricBlockSettings.copyOf(Blocks.IRON_BLOCK)));
public static final Block ENDER_BLOCK = registerBlock("ender_block", new EnderBlock());
public static final Block AURORA_CRYSTAL = registerBlock("aurora_crystal", new AuroraCrystalBlock());
public static final Block AMBER_BLOCK = registerBlock("amber_block", new AmberBlock());

View file

@ -68,7 +68,9 @@ public class EndTags {
public static void register() {
addSurfaceBlock(Blocks.END_STONE);
addSurfaceBlock(EndBlocks.THALASSIUM_ORE);
addSurfaceBlock(EndBlocks.ENDSTONE_DUST);
addSurfaceBlock(EndBlocks.AMBER_ORE);
EndItems.getModBlocks().forEach((item) -> {
Block block = ((BlockItem) item).getBlock();

View file

@ -582,5 +582,6 @@
"item.betterend.thalassium_ingot": "Thalassium Ingot",
"item.betterend.thalassium_pickaxe": "Thalassium Pickaxe",
"item.betterend.thalassium_shovel": "Thalassium Shovel",
"item.betterend.thalassium_sword": "Thalassium Sword"
"item.betterend.thalassium_sword": "Thalassium Sword",
"block.betterend.thalassium_block": "Thalassium Block"
}

View file

@ -584,5 +584,6 @@
"item.betterend.thalassium_ingot": "Талласиевый слиток",
"item.betterend.thalassium_pickaxe": "Талласиевая кирка",
"item.betterend.thalassium_shovel": "Талласиевая лопата",
"item.betterend.thalassium_sword": "Талласиевый меч"
"item.betterend.thalassium_sword": "Талласиевый меч",
"block.betterend.thalassium_block": "Талласиевый блок"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B