Solved Can't set inventory slots

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

sinphul

Member
Jan 1, 2020
4
0
0
24
I can't set inventory slots using skript2.2 on 1.8.8 spigot server with skquery and skellet. Error and code included.
7d16d60c36815f4243836a06b5c46df8

Code:
            set slot 0 of player to item feather named "&cVanish"
            set slot 1 of player to blaze rod named "&bFreeze"
            set slot 3 of player to lead named "&6Follow player"
            set slot 5 of player to book named "&aInspect Player"
            set slot 7 of player to clock named "&3Random TP"
            set slot 8 of player to head

[14:38:43 ERROR]: [Skript] a slot can't be set to 'item feather named "&cVanish"' because the latter is neither an item type nor an item stack (staffmode.sk, line 47: set slot 0 of player to item feather named "&cVanish"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'blaze rod named "&bFreeze"' because the latter is neither an item type nor an item stack (staffmode.sk, line 48: set slot 1 of player to blaze rod named "&bFreeze"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'lead named "&6Follow player"' because the latter is neither an item type nor an item stack (staffmode.sk, line 49: set slot 3 of player to lead named "&6Follow player"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'book named "&aInspect Player"' because the latter is neither an item type nor an item stack (staffmode.sk, line 50: set slot 5 of player to book named "&aInspect Player"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'clock named "&3Random TP"' because the latter is neither an item type nor an item stack (staffmode.sk, line 51: set slot 7 of player to clock named "&3Random TP"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'head' because the latter is neither an item type nor an item stack (staffmode.sk, line 52: set slot 8 of player to head')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'feather named "&cVanish"' because the latter is neither an item type nor an item stack (staffmode.sk, line 57: set slot 0 of player's inventory to feather named "&cVanish"')
[14:38:43 ERROR]: [Skript] a slot can't be set to 'feather named "&aAppear"' because the latter is neither an item type nor an item stack (staffmode.sk, line 61: set slot 0 of player's inventory to feather named "&aAppear"')
 
What version of skript are you now using?
1.8.8 version of minecraft. I was using skript2.2 and just now changed it to Skript 2.2-dev37c, now the skript is loading without errors how ever when i try to execute a custom command in the script it doesn't do anything and just says "Unknown command Type /help for help"
[doublepost=1577913951,1577913169][/doublepost]
What version of skript are you now using?

And what version of Minecraft?
Figured it out. It was SkQuery.
 
Code:
            set inventory slot 0 of player to feather named "&cVanish"
            set inventory slot 1 of player to blaze rod named "&bFreeze"
            set inventory slot 3 of player to lead named "&6Follow player"
            set inventory slot 5 of player to book named "&aInspect Player"
            set inventory slot 7 of player to clock named "&3Random TP"
            set inventory slot 8 of player to head
 
Status
Not open for further replies.