Storage bus/i/o blockstates

This commit is contained in:
DBotThePony 2022-05-16 14:46:33 +07:00
parent f35974e23a
commit de1eb1af19
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -225,6 +225,50 @@ object DataGen {
} }
} }
} }
lambda {
with(it.getMultipartBuilder(MBlocks.STORAGE_BUS)) {
for (dir in Direction.values()) {
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_bus")))
.rotationX(dir.toXRotBlockstate())
.rotationY(dir.toYRotBlockstate())
.addModel()
.condition(RotatableMatteryBlock.FACING_FULL, dir)
.end()
}
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_cable_core")))
.addModel().end()
}
with(it.getMultipartBuilder(MBlocks.STORAGE_IMPORTER)) {
for (dir in Direction.values()) {
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_importer")))
.rotationX(dir.toXRotBlockstate())
.rotationY(dir.toYRotBlockstate())
.addModel()
.condition(RotatableMatteryBlock.FACING_FULL, dir)
.end()
}
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_cable_core")))
.addModel().end()
}
with(it.getMultipartBuilder(MBlocks.STORAGE_EXPORTER)) {
for (dir in Direction.values()) {
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_exporter")))
.rotationX(dir.toXRotBlockstate())
.rotationY(dir.toYRotBlockstate())
.addModel()
.condition(RotatableMatteryBlock.FACING_FULL, dir)
.end()
}
part().modelFile(models().getExistingFile(ResourceLocation(OverdriveThatMatters.MOD_ID, "storage_cable_core")))
.addModel().end()
}
}
} }
with(itemModelProvider) { with(itemModelProvider) {
@ -293,6 +337,10 @@ object DataGen {
block(MItems.PLATE_PRESS, "plate_press_idle") block(MItems.PLATE_PRESS, "plate_press_idle")
block(MItems.STORAGE_POWER_SUPPLIER, "storage_power_supplier") block(MItems.STORAGE_POWER_SUPPLIER, "storage_power_supplier")
block(MItems.MATTER_RECYCLER, "matter_recycler_working") block(MItems.MATTER_RECYCLER, "matter_recycler_working")
block(MItems.STORAGE_BUS)
block(MItems.STORAGE_IMPORTER)
block(MItems.STORAGE_EXPORTER)
} }
blockStateProvider.lambda { provider -> blockStateProvider.lambda { provider ->