My skript does somewhat work but when I use a keycard on the top part of the door it does not work, and the block has to be right under the door when I want it to be under the block the door is on, can someone help me? Here is the skript:
on right click on iron door:
if block under clicked block is green terracotta:
if name of player's held item is "&aKeycard LvL 1" or "&bKeycard LvL 2":
open clicked block
wait 1 second
close clicked block
else:
send "&4
&7You need &aKeycard Level 1 &7or higher to open this door!" to player
wait 1 second
on right click on iron door:
if block under clicked block is yellow terracotta:
if name of player's held item is "&bKeycard LvL 2":
open clicked block
wait 1 second
close clicked block
else:
send "&4
&7You need &bKeycard Level 2 &7or higher to open this door!" to player
wait 1 second
People say to use 'blockdata tag "half" of event-block' but I kinda forgot how to use it... and idk if i need to replace anything with it....
on right click on iron door:
if block under clicked block is green terracotta:
if name of player's held item is "&aKeycard LvL 1" or "&bKeycard LvL 2":
open clicked block
wait 1 second
close clicked block
else:
send "&4
wait 1 second
on right click on iron door:
if block under clicked block is yellow terracotta:
if name of player's held item is "&bKeycard LvL 2":
open clicked block
wait 1 second
close clicked block
else:
send "&4
wait 1 second
People say to use 'blockdata tag "half" of event-block' but I kinda forgot how to use it... and idk if i need to replace anything with it....