relay blockstates and capacitor magic

This commit is contained in:
2026-04-28 20:50:14 +03:00
parent a57fca82e5
commit 7c27955c14
4 changed files with 23 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import net.minecraft.world.level.block.state.BlockState
import net.minecraft.world.phys.BlockHitResult
import org.neoflock.neocomputers.entity.BlockEntities
import org.neoflock.neocomputers.network.DeviceNode
import org.neoflock.neocomputers.network.Networking
import org.neoflock.neocomputers.network.PowerRole
import kotlin.math.min

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "neocomputers:block/relay"
}
}
}

View File

@@ -0,0 +1,12 @@
{
"parent": "minecraft:block/cube",
"textures": {
"up": "neocomputers:block/relay_top",
"down": "neocomputers:block/screen_bottom",
"north": "neocomputers:block/relay_side",
"south": "neocomputers:block/relay_side",
"east": "neocomputers:block/relay_side",
"west": "neocomputers:block/relay_side",
"particle": "neocomputers:block/case_top"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "neocomputers:block/relay"
}