Initial work on Netherrack Soil.

Also added the processing for Ancient Debris and some of the intermediates for the new Hellforged Ingots (no uses yet).
This commit is contained in:
WayofTime 2020-11-19 21:42:30 -05:00
parent 1ae356c886
commit 032e163795
62 changed files with 826 additions and 8 deletions

View file

@ -57,6 +57,7 @@ public class GeneratorBlockStates extends BlockStateProvider
buildCubeAll(BloodMagicBlocks.EARTH_RITUAL_STONE.get());
buildCubeAll(BloodMagicBlocks.DUSK_RITUAL_STONE.get());
buildCubeAll(BloodMagicBlocks.DAWN_RITUAL_STONE.get());
buildFarmland(BloodMagicBlocks.NETHER_SOIL.get(), BloodMagic.rl("block/nether_soil"), new ResourceLocation("block/netherrack"));
buildFurnace(BloodMagicBlocks.ALCHEMICAL_REACTION_CHAMBER.get());
@ -92,6 +93,18 @@ public class GeneratorBlockStates extends BlockStateProvider
// ModelFile modelFile = models().crop("", null);
// }
private void buildFarmland(Block block, ResourceLocation top, ResourceLocation side)
{
String basePath = block.getRegistryName().getPath();
getVariantBuilder(block).forAllStates(state -> {
Builder builder = ConfiguredModel.builder();
ModelFile file = models().withExistingParent(basePath, "template_farmland").texture("top", top).texture("dirt", side);
return builder.modelFile(file).build();
});
}
private void buildCubeAllWithTextureName(String texture)
{
models().cubeAll(texture, BloodMagic.rl("block/" + texture)).assertExistence();