Hello there,
i'm scripting a home plugin and i wan't a gui with pages. I forgot how to script it. Anybody?
i'm scripting a home plugin and i wan't a gui with pages. I forgot how to script it. Anybody?
Code:
command home [<text>]:
trigger:
if argument 1 is set:
send "{@prefix} §7Du wirst in §b3 §7Sekunden teleportiert."
send "{@prefix} §7Teleportation wird bei Bewegung abgebrochen."
set {_location} to player's location
loop 6 times:
if player's location isn't {_location}:
message "{@prefix} §cTeleportation abgebrochen."
stop
wait 0.5 seconds
teleport the player to {home::%player%::%argument 1%}
else:
#if size of {home::%player%::*} is 0:
# send "{@prefix} §7Du hast kein Zuhause gesetzt."
#else:
open chest with 1 row named "§8Home" to player
wait a tick
set {_page} to 0
set slot 8 of player's current inventory to ("MHF_ArrowRight" parsed as offline player)'s skull named "§7Nächste Seite"
#set slot 0 of player's current inventory to ("MHF_ArrowLeft" parsed as offline player)'s skull named "§7Zurück"
Last edited: