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

## 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?

##### Share on other sites

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

##### 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
##### 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

##### Share on other sites

On 8/7/2024 at 2:03 PM, chxr said:

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

## 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.

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

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

• ### Posts

• I couldn't find much usage, I found this and attempted to implement it. It doesn't seem to do anything though. I have this linked to a server to client packet... I have been at this since September seventh and have not made any progress. Blockpos and Blockstate are all pre-assigned variables, as is pLevel. I took the vertex consumer directly from LevelRenderer where I got this code from anyways. I didn't know what number to put into the ModelBakery.DESTROY_TYPES.get() so I just put the breakTime I used in the above code. Am I missing something?
• Mods: https://pastebin.com/6rXZLU8i
• Problematic part: [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gu57 lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.toString()" because "p_130086_" is null There is no crash, single player works, sadly it's not Hexerei Debug log: (can't use pastebin, cause 10 mb) https://drive.google.com/file/d/16ikQIx7nYjJtF4aJLy5KqFQHh6-jBNrd/view?usp=sharing
• Something in the Alex's Caves mod is preventing Distant Horizons from rendering. However, I don't want to get rid of Alex's Caves, as it is a part of my personal modded experience. Can someone please find the issue for me?

• ### Who's Online (See full list)

×

• #### Activity

×
• Create New...