Skip to content

Commit

Permalink
allow slabs or stairs on tractor beams
Browse files Browse the repository at this point in the history
  • Loading branch information
kwazedilla committed Sep 4, 2024
1 parent c86de36 commit 7efdabd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class MultiblockShape {
val blockData: BlockData? = if (loadChunks) block.blockData else getBlockDataSafe(block.world, block.x, block.y, block.z)
return@complete blockData is Slab && blockData.type == Slab.Type.DOUBLE
}
fun anySlabOrStairs() = filteredTypes { it.isSlab || it.isStairs }

fun terracottaOrDoubleslab() {
complete(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ object TractorBeamMultiblock : Multiblock(), InteractableMultiblock, Listener {
)

override fun MultiblockShape.buildStructure() {
at(+0, +0, +0).anySlab()
at(-1, +0, +1).anySlab()
at(+1, +0, +1).anySlab()
at(+0, +0, +2).anySlab()
at(+0, +0, +0).anySlabOrStairs()
at(-1, +0, +1).anySlabOrStairs()
at(+1, +0, +1).anySlabOrStairs()
at(+0, +0, +2).anySlabOrStairs()

at(+0, +0, +1).anyGlass()
}
Expand Down

0 comments on commit 7efdabd

Please sign in to comment.