Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.0 kB
1
Indexable
Never
command /test:
    trigger:
        set {_slotnum} to 0
        loop 36 times:
            set {inv::%player%::%{_slotnum}%} to slot {_slotnum} of player's inventory
            add 1 to {_slotnum}
        set {inv::%player%::helmet} to player's helmet
        set {inv::%player%::chestplate} to player's chestplate
        set {inv::%player%::leggings} to player's leggings
        set {inv::%player%::boots} to player's boots
        clear the player's inventory
        give player iron axe

on command "/spawn":
    if {inv::%player%::*} is set:
        set {_slotnum} to 0
        loop 36 times:
            set slot {_slotnum} of player's inventory to {inv::%player%::%{_slotnum}%}
            add 1 to {_slotnum}
        set the helmet of player to {inv::%player%::helmet}
        set the chestplate of player to {inv::%player%::chestplate}
        set the leggings of player to {inv::%player%::leggings}
        set the boots of player to {inv::%player%::boots}
        clear {inv::%player%::*}