Skript Version: Skript 2.2 (dev20c)
Skript Author: Bensku
Minecraft Version: 1.11
Set slot doesn't seem to work (and neither does format slot.) I'm trying to set a slot in the player's hotbar to a selector compass and it doesn't seem to work.
Code:
Addons using (including versions):
SkQuery Lime 3.5.7, TuSKe 1.7.7.
Skript Author: Bensku
Minecraft Version: 1.11
Set slot doesn't seem to work (and neither does format slot.) I'm trying to set a slot in the player's hotbar to a selector compass and it doesn't seem to work.
Code:
code_language.skript:
on join:
player's world is "world":
wait 1 tick
set slot 36 of player's current inventory to compass named "&aSelector" with lore "&9Select something to do!"
on right click:
if player is holding compass named "&aSelector":
wait 1 tick
open virtual dispenser inventory named "&a&nSelector" to player
format gui slot 4 of player with grass block named "&aSurvival" with lore "&9Play vanilla survival" to close then run function doSomething()
function doSomething():
broadcast "And it did"
Addons using (including versions):
SkQuery Lime 3.5.7, TuSKe 1.7.7.