screen progress

This commit is contained in:
2026-04-23 20:23:52 +02:00
parent a8ca4b1e35
commit 3bfc07c392
5 changed files with 45 additions and 10 deletions

View File

@@ -259,6 +259,9 @@ class CaseBlockEntity(blockPos: BlockPos, blockState: BlockState): NodeBlockEnti
super.tickNode(level)
if(!level.isClientSide) {
if (isRunning()) {
if(getMachineComponentsUsed() > getMachineComponentsTotal()) {
crash("too many components")
}
if (!node.consumeEnergy(1)) {
crash("out of energy")
}