so i was making a GUI for my server wich lead to some errors...
so i was trying to make someone rightclick on an npc (wich worked) to execute an command, thts the command i need help for!
so here's the skript:
command /Fisherman:
trigger:
open chest with 5 rows named "&bFisherman's Shop" to player
wait 1 tick
format slot 0 of player with Gray stained glass pane named " " to close
format slot 1 of player with Gray stained glass pane named " " to close
format slot 2 of player with Gray stained glass pane named " " to close
format slot 3 of player with Gray stained glass pane named " " to close
format slot 4 of player with Gray stained glass pane named " " to close
format slot 5 of player with Gray stained glass pane named " " to close
format slot 6 of player with Gray stained glass pane named " " to close
format slot 7 of player with Gray stained glass pane named " " to close
format slot 8 of player with Gray stained glass pane named " " to close
format slot 9 of player with Gray stained glass pane named " " to close
format slot 10 of player with Gray stained glass pane named " " to close
format slot 11 of player with glowing Iron Chestplate named "Armors" to close then run [execute player command "/fishermanarmors"]
format slot 12 of player with Gray stained glass pane named " " to close
format slot 13 of player with Gray stained glass pane named " " to close
format slot 14 with Gray of player stained glass pane named " " to close
format slot 15 of player with glowing Iron Sword named "Weapons" to close then run [execute player command "/fishermanweapons"]
format slot 16 of player with Gray stained glass pane named " " to close
format slot 17 of player with Gray stained glass pane named " " to close
format slot 18 of player with Gray stained glass pane named " " to close
format slot 19 of player with Gray stained glass pane named " " to close
format slot 20 of player with Gray stained glass pane named " " to close
format slot 21 of player with Gray stained glass pane named " " to close
format slot 22 of player with Gray stained glass pane named " " to close
format slot 23 of player with Gray stained glass pane named " " to close
format slot 24 of player with Gray stained glass pane named " " to close
format slot 25 of player with Gray stained glass pane named " " to close
format slot 26 of player with Gray stained glass pane named " " to close
format slot 27 of player with Gray stained glass pane named " " to close
format slot 28 of player with Gray stained glass pane named " " to close
format slot 29 of player with Gray stained glass pane named " " to close
format slot 30 of player with Gray stained glass pane named " " to close
format slot 31 of player with glowing Fishing rod named "Fishing rods" to close then run [execute player command "/fishermanfishingrods"]
format slot 32 of player with Gray stained glass pane named " " to close
format slot 33 of player with gray stained glass pane named " " to close
format slot 34 of player with Gray stained glass pane named " " to close
format slot 35 of player with Gray stained glass pane named " " to close
format slot 36 of player with Gray stained glass pane named " " to close
format slot 37 of player with Gray stained glass pane named " " to close
format slot 38 of player with Gray stained glass pane named " " to close
format slot 39 of player with Gray stained glass pane named " " to close
format slot 40 of player with Gray stained glass pane named " " to close
format slot 41 of player with Gray stained glass pane named " " to close
format slot 42 of player with Gray stained glass pane named " " to close
format slot 43 of player with Gray stained glass pane named " " to close
format slot 44 of player with Gray stained glass pane named " " to close
format slot 45 of player with Gray stained glass pane named " " to close
But it says "Invalid line: All code has to be put into triggers."
i have another skript formatted EXACLY like this one, that works.
Here the working skript i made is:
command /Die:
trigger:
open chest with 1 rows named "&bCONFIRMATION" to player
wait 1 tick
format slot 0 of player with gray stained glass pane named "Cancel" to close
format slot 1 of player with gray stained glass pane named "Cancel" to close
format slot 2 of player with gray stained glass pane named "Cancel" to close
format slot 3 of player with gray stained glass pane named "Cancel" to close
format slot 4 of player with Glowing Barrier named "&4CONFIRM" to close then run [execute player command "/suicide"]
format slot 5 of player with gray stained glass pane named "Cancel" to close
format slot 6 of player with gray stained glass pane named "Cancel" to close
format slot 7 of player with gray stained glass pane named "Cancel" to close
format slot 8 of player with gray stained glass pane named "Cancel" to close
And that one works perfecly, please help!
so i was trying to make someone rightclick on an npc (wich worked) to execute an command, thts the command i need help for!
so here's the skript:
command /Fisherman:
trigger:
open chest with 5 rows named "&bFisherman's Shop" to player
wait 1 tick
format slot 0 of player with Gray stained glass pane named " " to close
format slot 1 of player with Gray stained glass pane named " " to close
format slot 2 of player with Gray stained glass pane named " " to close
format slot 3 of player with Gray stained glass pane named " " to close
format slot 4 of player with Gray stained glass pane named " " to close
format slot 5 of player with Gray stained glass pane named " " to close
format slot 6 of player with Gray stained glass pane named " " to close
format slot 7 of player with Gray stained glass pane named " " to close
format slot 8 of player with Gray stained glass pane named " " to close
format slot 9 of player with Gray stained glass pane named " " to close
format slot 10 of player with Gray stained glass pane named " " to close
format slot 11 of player with glowing Iron Chestplate named "Armors" to close then run [execute player command "/fishermanarmors"]
format slot 12 of player with Gray stained glass pane named " " to close
format slot 13 of player with Gray stained glass pane named " " to close
format slot 14 with Gray of player stained glass pane named " " to close
format slot 15 of player with glowing Iron Sword named "Weapons" to close then run [execute player command "/fishermanweapons"]
format slot 16 of player with Gray stained glass pane named " " to close
format slot 17 of player with Gray stained glass pane named " " to close
format slot 18 of player with Gray stained glass pane named " " to close
format slot 19 of player with Gray stained glass pane named " " to close
format slot 20 of player with Gray stained glass pane named " " to close
format slot 21 of player with Gray stained glass pane named " " to close
format slot 22 of player with Gray stained glass pane named " " to close
format slot 23 of player with Gray stained glass pane named " " to close
format slot 24 of player with Gray stained glass pane named " " to close
format slot 25 of player with Gray stained glass pane named " " to close
format slot 26 of player with Gray stained glass pane named " " to close
format slot 27 of player with Gray stained glass pane named " " to close
format slot 28 of player with Gray stained glass pane named " " to close
format slot 29 of player with Gray stained glass pane named " " to close
format slot 30 of player with Gray stained glass pane named " " to close
format slot 31 of player with glowing Fishing rod named "Fishing rods" to close then run [execute player command "/fishermanfishingrods"]
format slot 32 of player with Gray stained glass pane named " " to close
format slot 33 of player with gray stained glass pane named " " to close
format slot 34 of player with Gray stained glass pane named " " to close
format slot 35 of player with Gray stained glass pane named " " to close
format slot 36 of player with Gray stained glass pane named " " to close
format slot 37 of player with Gray stained glass pane named " " to close
format slot 38 of player with Gray stained glass pane named " " to close
format slot 39 of player with Gray stained glass pane named " " to close
format slot 40 of player with Gray stained glass pane named " " to close
format slot 41 of player with Gray stained glass pane named " " to close
format slot 42 of player with Gray stained glass pane named " " to close
format slot 43 of player with Gray stained glass pane named " " to close
format slot 44 of player with Gray stained glass pane named " " to close
format slot 45 of player with Gray stained glass pane named " " to close
But it says "Invalid line: All code has to be put into triggers."
i have another skript formatted EXACLY like this one, that works.
Here the working skript i made is:
command /Die:
trigger:
open chest with 1 rows named "&bCONFIRMATION" to player
wait 1 tick
format slot 0 of player with gray stained glass pane named "Cancel" to close
format slot 1 of player with gray stained glass pane named "Cancel" to close
format slot 2 of player with gray stained glass pane named "Cancel" to close
format slot 3 of player with gray stained glass pane named "Cancel" to close
format slot 4 of player with Glowing Barrier named "&4CONFIRM" to close then run [execute player command "/suicide"]
format slot 5 of player with gray stained glass pane named "Cancel" to close
format slot 6 of player with gray stained glass pane named "Cancel" to close
format slot 7 of player with gray stained glass pane named "Cancel" to close
format slot 8 of player with gray stained glass pane named "Cancel" to close
And that one works perfecly, please help!