Skript

Discussion in 'Skript' started by Tekkabyte, Feb 19, 2020.

Thread Status:
Not open for further replies.
  1. so i'm trying to make a skript that when you run on a dark prismarine block it would tp them back 2 block south or change y coordinates by 2
    here are some of my failed attempts
    on any movement:
    if block below is dark prismarine:
    set {_loc} to z-coordinate of player
    add 2 to {_loc}

    on any movement:
    if block below is dark prismarine:
    teleport player 2 blocks south

    on contact with a dark prismarine:
    if block below is dark prismarine:
    set {_loc} to z-coordinate of player
    add 2 to {_loc}
    repeated failure after failure would be realy helpful if anyone can get this working
     
  2. on any move for this isn't really efficient, the event is:
    Code (Text):
    on walking on dark prismarine:
      teleport player to location 2 meters south of player
     
    OR
    Code (Text):
    on walking on dark prismarine:
      set {_loc} to location of player
      set z-coordinate of {_loc} to z-coordinate of {_loc}+2
      teleport player to {_loc}
     
     
  3. thankyou it worked
     
Thread Status:
Not open for further replies.