ZeroNoRyouki / ZeroCore-OLD

Utility mod and multiblock API
10 stars 1 forks source link

Is it possible to check for hollow multiblock structures? #6

Closed boop5 closed 7 years ago

boop5 commented 7 years ago

3x3x3 with 26 blocks for example (mid missing) => should be a valid structure

RogueLogix commented 7 years ago

Yes, it already is. assuming you are extending RectangularMultiblockControllerbase, that area of a 3x3x3 is considered to be the interior if the multiblock (only one block in this case). This means that you need to have getMinimumNumberOfBlocksForAssembledMachine() return 26 blocks. if you want to disable a block from being placed in this area have the tile's isGoodForInterior(IMultiblockValidator validatorCallback) return false.

boop5 commented 7 years ago

Perfect. tyvm, appreciate it

RogueLogix commented 7 years ago

if you need more help you can contact me on discord #5271 not sure how you would get zero reliably.

ZeroNoRyouki commented 7 years ago

@babbelnedd you can find a tutorial on the multiblock API here: http://zerono.it/zerocore-multiblock-api-tutorial/

Z