check location of block below player

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

dmc

Member
Jul 25, 2021
4
1
3
33
hi, i need help with checking location of block below player
something like:

Code:
set {vent.1} to location(9, 4, 123)
if block's location below player is {vent.1}:

but it doesnt work.. i neeed something like that, but working
 
I have not tested this but it might work:
command /vent:
trigger:
set {vent.1} to the block below the player
on any move:
if the block below the player is the block at {vent.1}:
send "hi" to the player
i'm not sure how to use spaces because I always use tabs
 
hi, i need help with checking location of block below player
something like:

Code:
set {vent.1} to location(9, 4, 123)
if block's location below player is {vent.1}:

but it doesnt work.. i neeed something like that, but working

Block's locations are centralized, meaning the location of the block is in the middle, so
Code:
(9.5, 4.5, 123.5)
 
Status
Not open for further replies.