mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Generate stair blockstates, also fix avatar tesr stack underflow
This commit is contained in:
1 parent
3f43b02686
commit
01e80c0f54
78 files changed
+7973
-1700
No files matched your search
@@ -47,16 +47,21 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
Registry.BLOCK.stream().filter(b -> LibMisc.MOD_ID.equals(b.getRegistryName().getNamespace()))
|
||||
.forEach(b -> {
|
||||
if (b instanceof FenceBlock || b instanceof FenceGateBlock || b instanceof PaneBlock
|
||||
|| b instanceof SlabBlock || b instanceof StairsBlock || b instanceof WallBlock
|
||||
|| b instanceof SlabBlock || b instanceof WallBlock
|
||||
|| b instanceof FlowerBlock || b instanceof BlockAltar || b == ModBlocks.tinyPotato
|
||||
|| b instanceof BlockRedString || b instanceof BlockFloatingFlower || b instanceof BlockModMushroom
|
||||
|| b instanceof BlockModDoubleFlower || b.getRegistryName().getPath().contains("quartz")
|
||||
|| b.getRegistryName().getPath().contains("metamorphic")
|
||||
|| (b.getRegistryName().getPath().contains("metamorphic") && !b.getRegistryName().getPath().contains("stairs"))
|
||||
|| b == ModBlocks.craftCrate || b == ModBlocks.ghostRail
|
||||
|| b == ModBlocks.pump || b == ModBlocks.incensePlate || b == ModBlocks.felPumpkin || b == ModBlocks.solidVines)
|
||||
return;
|
||||
|
||||
if (b instanceof BlockAltGrass) {
|
||||
if (b instanceof StairsBlock) {
|
||||
ModelFile stair = models().getExistingFile(prefix("block/stairs/" + b.getRegistryName().getPath()));
|
||||
ModelFile inner = models().getExistingFile(prefix("block/stairs/" + b.getRegistryName().getPath() + "_inner"));
|
||||
ModelFile outer = models().getExistingFile(prefix("block/stairs/" + b.getRegistryName().getPath() + "_outer"));
|
||||
stairsBlock((StairsBlock) b, stair, inner, outer);
|
||||
} else if (b instanceof BlockAltGrass) {
|
||||
ModelFile model = models().getExistingFile(prefix("block/" + b.getRegistryName().getPath()));
|
||||
getVariantBuilder(b).partialState().setModels(new ConfiguredModel(model),
|
||||
new ConfiguredModel(model, 0, 90, false),
|
||||
|
||||
Reference in new issue
Block a user