Sulphuric rock furnace, shaders, furnaces tag
This commit is contained in:
parent
3d56209653
commit
c5182a4418
22 changed files with 112 additions and 7 deletions
|
@ -18,12 +18,16 @@ import net.minecraft.util.registry.Registry;
|
|||
import net.minecraft.world.BlockView;
|
||||
import net.minecraft.world.World;
|
||||
import ru.betterend.blocks.entities.EFurnaceBlockEntity;
|
||||
import ru.betterend.client.render.ERenderLayer;
|
||||
import ru.betterend.interfaces.IRenderTypeable;
|
||||
import ru.betterend.patterns.BlockPatterned;
|
||||
import ru.betterend.patterns.Patterns;
|
||||
|
||||
public class EndFurnaceBlock extends FurnaceBlock implements BlockPatterned {
|
||||
public class EndFurnaceBlock extends FurnaceBlock implements BlockPatterned, IRenderTypeable {
|
||||
public EndFurnaceBlock(Block source) {
|
||||
super(FabricBlockSettings.copyOf(source));
|
||||
super(FabricBlockSettings.copyOf(source).luminance((state) -> {
|
||||
return state.get(LIT) ? 13 : 0;
|
||||
}));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -48,18 +52,28 @@ public class EndFurnaceBlock extends FurnaceBlock implements BlockPatterned {
|
|||
|
||||
@Override
|
||||
public String getModelPattern(String block) {
|
||||
String add = block.contains("_on") ? "_on" : "";
|
||||
Identifier blockId = Registry.BLOCK.getId(this);
|
||||
Map<String, String> map = Maps.newHashMap();
|
||||
map.put("%top%", blockId.getPath() + "_top");
|
||||
map.put("%front%", blockId.getPath() + "_front" + add);
|
||||
map.put("%side%", blockId.getPath() + "_side");
|
||||
map.put("%bottom%", blockId.getPath() + "_bottom");
|
||||
return Patterns.createJson(Patterns.BLOCK_FURNACE, map);
|
||||
if (block.contains("_on")) {
|
||||
map.put("%front%", blockId.getPath() + "_front_on");
|
||||
map.put("%glow%", blockId.getPath() + "_glow");
|
||||
return Patterns.createJson(Patterns.BLOCK_FURNACE_GLOW, map);
|
||||
}
|
||||
else {
|
||||
map.put("%front%", blockId.getPath() + "_front");
|
||||
return Patterns.createJson(Patterns.BLOCK_FURNACE, map);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identifier statePatternId() {
|
||||
return Patterns.STATE_FURNACE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ERenderLayer getRenderLayer() {
|
||||
return ERenderLayer.CUTOUT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import ru.betterend.recipe.builders.GridRecipe;
|
|||
import ru.betterend.recipe.builders.SmithingTableRecipe;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.registry.EndItems;
|
||||
import ru.betterend.registry.EndTags;
|
||||
import ru.betterend.util.TagHelper;
|
||||
|
||||
public class MetalMaterial {
|
||||
|
@ -198,5 +199,6 @@ public class MetalMaterial {
|
|||
GridRecipe.make(name + "_boots", boots).setShape("# #", "# #").addMaterial('#', ingot).setGroup("end_metal_boots").build();
|
||||
|
||||
TagHelper.addTag(BlockTags.ANVIL, anvil);
|
||||
TagHelper.addTag(EndTags.IRON_INGOTS, ingot);
|
||||
}
|
||||
}
|
|
@ -90,6 +90,7 @@ public class StoneMaterial {
|
|||
TagHelper.addTag(ItemTags.STONE_BRICKS, bricks);
|
||||
TagHelper.addTag(ItemTags.STONE_CRAFTING_MATERIALS, stone);
|
||||
TagHelper.addTag(ItemTags.STONE_TOOL_MATERIALS, stone);
|
||||
TagHelper.addTag(EndTags.FURNACES, furnace);
|
||||
|
||||
// Block Tags //
|
||||
TagHelper.addTag(BlockTags.STONE_BRICKS, bricks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue