![]() you may keep canSurvive() it in one block class or split into two (or three if you must), but that method is the only thing that you need to break multiblocks. Get 4 adjacent postitions, return false if either isnt secondary block Get a position of main, get block, if it isn't primary return false. for example if current block is secondary and its "facing" is south, main block is one to the north.Ĭheck two adjacent positions (according to blockState) if either is not secondary, return false. ![]() you will have block properties (accessed via blockState.getValue) which need to be enough for you to locate the main block. ![]() You will have one main block (if you have a block entity, attach it to that one) and 4 secondary blocks (adjacent to the center one) and 4 tertiary blocks (in corners, adjacent to two secondary ones). It's a simple problem, that's why solution is easy to miss.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |