By the way, I did check forums but it didn't really help me...
So what I'm trying to do is make a gui that detects if a certain item is in the empty slot and will put a "spell" on it, but for some reason it keeps popping up this error! (at the bottom)
This is my code:
And when I reload the script it sends out this error:
How can I fix this?
So what I'm trying to do is make a gui that detects if a certain item is in the empty slot and will put a "spell" on it, but for some reason it keeps popping up this error! (at the bottom)
This is my code:
Code:
command /mpsf:
permission: minepvp.spellforge
permission message: &cYou are not in the right lobby/game to do this!
trigger:
wait 1 tick
open chest with 3 rows named "&c&lSpell Forge" to player
wait 1 tick
format slot 0 of player with gray stained glass pane named "&a" to close
format slot 1 of player with gray stained glass pane named "&a" to close
format slot 2 of player with gray stained glass pane named "&a" to close
format slot 3 of player with gray stained glass pane named "&a" to close
format slot 4 of player with gray stained glass pane named "&a" to close
format slot 5 of player with gray stained glass pane named "&a" to close
format slot 6 of player with gray stained glass pane named "&a" to close
format slot 7 of player with gray stained glass pane named "&a" to close
format slot 8 of player with gray stained glass pane named "&a" to close
format slot 9 of player with gray stained glass pane named "&a" to close
format slot 10 of player with gray stained glass pane named "&a" to close
format slot 11 of player with gray stained glass pane named "&a" to close
format slot 12 of player with gray stained glass pane named "&a" to close
format slot 14 of player with gray stained glass pane named "&a" to close
format slot 15 of player with gray stained glass pane named "&a" to close
format slot 16 of player with gray stained glass pane named "&a" to close
format slot 17 of player with gray stained glass pane named "&a" to close
format slot 18 of player with gray stained glass pane named "&a" to close
format slot 19 of player with gray stained glass pane named "&a" to close
format slot 20 of player with gray stained glass pane named "&a" to close
format slot 21 of player with gray stained glass pane named "&a" to close
format slot 23 of player with gray stained glass pane named "&a" to close
format slot 22 of player with redstone block named "&3&lCombine" to close
format slot 24 of player with gray stained glass pane named "&a" to close
format slot 25 of player with gray stained glass pane named "&a" to close
format slot 26 of player with gray stained glass pane named "&a" to close
on inventory click:
if inventory name of player's current inventory is "&c&lSpell Forge":
if clicked slot is 13:
set {_spellforgeitem} to player's cursor
if lore of {_spellforgeitem} is "&fsup":
send "%{_spellforgeitem}%"
if name of {_spellforgeitem} is "&fTorch":
send "%{_spellforgeitem}%"
And when I reload the script it sends out this error:
Code:
Line 35: Can't understand this condition: 'on inventory click' (script.sk, line 35: on inventory click:')
How can I fix this?