Started by
AOCAWOL
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! So I made a door, but instead of doing 2 blocks (1 top and 1 bottom block) it's just a 2 block tall model. However, when I use the right-click procedure to change it from an open door to a closed door and vise versa it only lets me perform the action on the bottom block but not the top yet it registers that its 2 blocks tall. Any way to fix this?
Did you set the bounding box of the door block to 2 blocks?
Yes I did, my dimensions are:
min x 0
min y -2
min z 0
max x 1
max y 2
max z 0.3
And previously I had the min Y set to 0 as well and it still wasn't letting me right-click the block at 2 blocks tall.
I'm also having a problem where I have the block set to where it can rotate Y axis rotation "S/W/N/E" and it works, but I have it set to where I have a "door item" (like vanilla) is what you use to place it and it only places it facing North.
I don't think you can set negative dimensions, check this page to see how bounding boxes are calculated: https://mcreator.net/wiki/block-dimensions-and-bonding-box
You most likely can't click on the top block, but I am not 100% sure if right clicked detection actually works with bounding box check.
For the second issue, I think it will be possible to be solved once we fix this one: https://mcreator.net/tracker/issue/47554
The bounding box almost never renders the top part, so i just use 2 blocks, just like mc does.
Yeah but how exactly do you do that?
Make it so when the door "Block" is placed, it spawns the second block at y+1
Then on block right clicked change to "Open" state for both blocks then on "Open" right clicked change to "Closed"
Okay, do you also know how to make it so when I right-click the ground with my Door item that it places the block in the direction the player is facing?
Been trying to figure that out for weeks, lets hope someone here knowsj