🪨Furniture collisions
How can I make a furniture solid?
You can make a furniture solid adding the "solid" attribute and specifying a hitbox (if you want > 1x1x1)
Hitbox has wrong location
Sometimes you need to also specify an "offset" to fix the hitbox location. This can happen if your furniture is 2x1x1 for example.
Wrong hitbox location
Correct location
I had to set a width offset
of 0.5
.
You can also use negative values if needed.
Preview the hitbox
You can use the command /iahitbox
to see the hitbox when you pleace a furniture, it's very useful to detect mistakes in the hitbox configuration
Hitboxes limitations
item_frame
limitations (doesn't affect armor_stand
)
Furnitures that use entity: item_frame
support only hitbox with width
and length
of the same value.
Example: width: 2
, length: 2
, height: 1
.
If you want to have different width
and length
use entity: armor_stand
.
Last updated