options:
item-slot: 1
item-name: &a&lExample
item-lore: &7I'm so lazy to write multiple lines.||&7Okay, so, stop please.||&7Oh no, this is line 3, right?
inventory-title: Inventory
on join:
wait second
set slot ({@item-slot} - 1) of player to skull of player with nbt "{SkullOwner:{Id:""20696b18-02b0-45cc-8e97-e4e73aeda35f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWZmMWI5ZjNiMjk5OWM5ZWFhNWU2ODE1NDdiNTJlZWJjNWJmN2U5Zjg3YTdiMTFkOWM4ZDkxZDI2ZjkxNjEifX19""}]}}}" named "{@item-name}" with lore "{@item-lore}"
on right-click with player head item:
item's name is "{@item-name}":
cancel event
open virtual hopper inventory named "{@inventory-title}" to player
loop 5 times:
format gui slot (loop-integer - 1) of player with air named ""
format gui slot 2 of player with skull of player with nbt "{SkullOwner:{Id:""8f206973-cd58-41c7-afdf-f7eba2247856"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODI0YzZmZjE3MTRlYjJjM2I4NDRkNDZkMmU1ZWEyZjI2ZDI3M2EzM2VhYWE3NDRhYmY2NDViMDYwYjQ3ZDcifX19""}]}}}" named "&bActions:" with lore "&f«Q + CTRL» &8- &7Sends a message for you.||&f«Q» &8- &7Broadcasts a message." to close:
click type is drop key with control:
send "&aPressed: Q + CTRL" and ""
send "Hello %player%, this only shows for you."
else if click type is drop key:
send "&aPressed: Q" and ""
broadcast "Hello server, this message shows for all online players."
else:
send "Pressed: NOT Q, AND NOT Q + CTRL."