Hey, I am trying to make a gamemode where you have several doors. You have several levels and to make it easier to make one I want to have it so that you just can place the doors that need a key to open. I made it so those doors have sharpness 0 to seperate them from the "normal" doors. only it doesnt add up in the list. here is my code:
on place of oak door:
if event-block is enchanted with sharpness:
add location of event-block to {Doors::*}
send "test"
on rightclick on oak door:
if {Doors::*} contains location of event-block:
send "test2"
command /debug:
trigger:
send "%{Doors::*}%"
I hope someone has a solution!
[doublepost=1617651594,1617651062][/doublepost]Found the problem. if player's tool is enchanted. not the block
on place of oak door:
if event-block is enchanted with sharpness:
add location of event-block to {Doors::*}
send "test"
on rightclick on oak door:
if {Doors::*} contains location of event-block:
send "test2"
command /debug:
trigger:
send "%{Doors::*}%"
I hope someone has a solution!
[doublepost=1617651594,1617651062][/doublepost]Found the problem. if player's tool is enchanted. not the block