Solved Adding blocks to list when placed doesnt work.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Ruubgaming

Member
Mar 11, 2020
2
0
1
18
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! :emoji_slight_smile:
[doublepost=1617651594,1617651062][/doublepost]Found the problem. if player's tool is enchanted. not the block
 
Status
Not open for further replies.