Solved right click block

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

_PAPER_PLANE_

Member
Jan 21, 2022
41
0
6
(sorry my english is not good)
I want to trigger when the player right click on a block with a specific coordinates
But it doesn't work, and there are no error messages


on rightclick:
set {_1} to location at location(-83.5, 63.5, -1.5, world "world")
if event-block's location = {_1}:
send "hi"​
 
Please next time use code brackets :emoji_slight_smile:

You can check the block at the location, (not tested but should work).


Code:
on rightclick:
    set {_1} to location at location(-83.5, 63.5, -1.5, world "world")
    if block at {_1} = event-block:
        send "hi"
 
  • Like
Reactions: _PAPER_PLANE_
Status
Not open for further replies.