Command on block right click

  • 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 community!

    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.

CringeBoy

Active Member
May 20, 2021
65
0
6
Romania
Can someone help me with making a skript where if u press right click on oak wood stair it will execute a command ? I currently have this and its not working:
on right click:
if clicked block is oak wood stair:
make player execute command "/ecraft"
#any code here
 
please use the bb code for code. you can find it here:
wIuYOzf.png
 
Code:
on right click:
    if clicked block is oak wood stair:
        execute console command "/ecraft open weapons_armor %player%"
        #any code here
This code that I've made actually works but there is a problem. As example, the stair faces to the right, it works, but if I will face it to the left, it won't work. Is there any fix for that?
 
Status
Not open for further replies.