Player is standing on a pressureplate on coordinate..

  • 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.

rquw

Member
Feb 18, 2022
3
0
1
23
Hello,
Can anybody help me with a skript?
Basically, I want to make a skript that checks if a player is standing on a pressure plate on a specific coordinate.It doesn't show any errors, but it also doesn't execute the functions after. My skript is this:

Code:
on step on stone pressure plate:
    player's x-coordinate is 45:
        player's y-coordinate is 39:
            player's z-coordinate is -162:
                add 1 to {red}
                execute console command "item replace entity %player% armor.head with minecraft:leather_helmet{display:{color:16711715}}"
                send "§b> &lYou have been locked in with the team §7§l[§4§lRED§7§l]§r§l." to player
 
Code:
on stepping on pressure plate:
    send "%location%" to player

on stepping on a pressure plate:
   if location of event-block is location x, y, z in world "world":
      #stuff
 
Last edited:
Status
Not open for further replies.