mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Datagenerate incense plate, pump, fel pumpkin, tiny potato
This commit is contained in:
1 parent
f58a48c254
commit
d75df9fa6a
15 files changed
+88
-41
No files matched your search
@@ -53,10 +53,9 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
protected void registerStatesAndModels() {
|
||||
Registry.BLOCK.stream().filter(b -> LibMisc.MOD_ID.equals(b.getRegistryName().getNamespace()))
|
||||
.forEach(b -> {
|
||||
if (b == ModBlocks.tinyPotato
|
||||
|| b instanceof BlockRedString || b instanceof BlockFloatingFlower
|
||||
if (b instanceof BlockRedString || b instanceof BlockFloatingFlower
|
||||
|| b == ModBlocks.craftCrate || b == ModBlocks.ghostRail
|
||||
|| b == ModBlocks.pump || b == ModBlocks.incensePlate || b == ModBlocks.felPumpkin || b == ModBlocks.solidVines)
|
||||
|| b == ModBlocks.solidVines)
|
||||
return;
|
||||
|
||||
String name = b.getRegistryName().getPath();
|
||||
@@ -127,6 +126,12 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
ModelFile onFile = models().getExistingFile(prefix("block/" + name + "_powered"));
|
||||
getVariantBuilder(b).partialState().with(BotaniaStateProps.POWERED, false).setModels(new ConfiguredModel(offFile));
|
||||
getVariantBuilder(b).partialState().with(BotaniaStateProps.POWERED, true).setModels(new ConfiguredModel(onFile));
|
||||
} else if (b == ModBlocks.tinyPotato || b == ModBlocks.felPumpkin || b == ModBlocks.pump) {
|
||||
ModelFile file = models().getExistingFile(prefix("block/" + name));
|
||||
horizontalBlock(b, file);
|
||||
} else if (b == ModBlocks.incensePlate) {
|
||||
ModelFile file = models().getExistingFile(prefix("block/" + name));
|
||||
horizontalBlock(b, file, 0);
|
||||
} else {
|
||||
simpleBlock(b, models().getExistingFile(prefix("block/" + name)));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user