how do i set a variable to the block below the player's current location?

  • 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.
plz tell me how
Code:
set {_x} to the x-coordinate of player
set {_y} to the y-coordinate of player
set {_z} to the z-coordinate of player
remove 1 from {_y}
wait 1 tick
set {location} to {_x} {_y} {_z}
teleport player to {location}
that should work havent tested
 
Code:
set {_below} to block below player

set {_below} to block at location 1 meter below player

set {_below} to player's location ~~ vector(0,-1,0)
 
Status
Not open for further replies.