Jump to content

Best logic to handle a block that is bigger than 1 block?


chxr

Recommended Posts

What would be the best logic to manage a multiple block block?

I already know how some use halves like doors, but mine is supposed to be a 2x2x2 block. Is just decor, doesn't do anything special, so what is the recommended way to go about it since bounding boxes have a limit of 1 block?

Link to comment
Share on other sites

Posted (edited)
On 8/4/2024 at 10:22 PM, scientistknight1 said:

I suppose you could use three boolean blockstates to determine which corner the block is in?

I've ended up doing it the "dirty" way and had 8 different subblocks spawning from placing the "full block". All of them share the same class and share a small logic block to handle what happens when they're mined. Will check the blockstate thing though.

Edited by chxr
Link to comment
Share on other sites

On 8/4/2024 at 10:22 PM, scientistknight1 said:

I suppose you could use three boolean blockstates to determine which corner the block is in?

Ok it was literally WAAAY easier using blockstates. Thanks for reminding me they exist lmao

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.