#how would I detect if the block I right click on is a door? (and which part of the door)

6 messages · Page 1 of 1 (latest)

ashen haven
#

I made a reinforcement script, and I save some data to a key which is the coordinate, but since a door is 2 blocks if I reinforce the bottom and break the top it breaks the door even tho it should share the reinforcement value

so how do I detect if the block I rightclick on is a door and which part of the door it is?

BlockEvents.rightClicked(event => {
   let { block, level } = event;
})
fierce sonnetBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

ashen haven
#

realized that beds might need this too

boreal cape
#

blonkstate

ashen haven
#

hmm

wooden valve
#

block states could help. check the half of the block, and by that, determine if the block below or above is also a door half