Hey guys,
I am working on a reallife server with in my skript i want to have keys for iron doors.
That's not that hard but now i want to have just keys for diffrent doors.
So for example a key for house1, and a key for house2 but they cant open each other.
This is what i have in my skript:
The part with "if name of targeted block is "House1Door" gives no errors but it isnt working.
So can someone maybe help me with this?
I am working on a reallife server with in my skript i want to have keys for iron doors.
That's not that hard but now i want to have just keys for diffrent doors.
So for example a key for house1, and a key for house2 but they cant open each other.
This is what i have in my skript:
code_language.skript:
on right click on iron door:
if tool of player is name tag:
if name of tool of player is "House1":
if name of targeted block is "House1Door":
activate block
wait 2 seconds
deactivate block
else:
message "You don't have a key!"
The part with "if name of targeted block is "House1Door" gives no errors but it isnt working.
So can someone maybe help me with this?