command /asdf:
trigger:
set {_gui} to a new chest inventory with 1 row named "test"
set slot 0 of {_gui} to bedrock named "test" with lore "test"
set slot 1 of {_gui} to bedrock named "test" with lore "test"
set slot 2 of {_gui} to bedrock named "test" with lore "test"
set slot 3 of {_gui} to bedrock named "test" with lore "test"
set slot 4 of {_gui} to bedrock named "test" with lore "test"
set slot 5 of {_gui} to bedrock named "test" with lore "test"
set slot 6 of {_gui} to bedrock named "test" with lore "test"
set slot 7 of {_gui} to bedrock named "test" with lore "test"
set slot 8 of {_gui} to bedrock named "test" with lore "test"
set slot 9 of {_gui} to bedrock named "test" with lore "test"
open {_gui} to player
on inventory click:
if name of event-inventory is "test":
if index of event-slot is 0:
cancel event
execute op command "kill %player%"
if index of event-slot is 1:
cancel event
execute op command "gm 0 %player%"
else:
cancel event
Every 1 second:
loop all players:
send action bar "&c실험: %{%loop-player%.asdf}%" to loop-player
on join:
set title of player's scoreboard to "&bLe &3Title"
set line 15 of player's scoreboard to "&aPlayers:"
set line 13 of player's scoreboard to "&aMoney:"
set line 11 of player's scoreboard to "&aKills:"
set line 9 of player's scoreboard to "&aDeaths:"
while player is online:
set line 14 of player's scoreboard to "&7 - &bsize of all players"
set line 12 of player's scoreboard to "&7 - &bbalance of player"
set line 10 of player's scoreboard to "&7 - &bkill entity stat using player of player"
set line 8 of player's scoreboard to "&7 - &beaths stat of player"
wait 1 second
On first join:
add 1 to {%player%.asdf}
On death:
if attacker is player:
if victim is zombie:
add 1 to {%attacker%.asdf}
else if victim is spider:
add 2 to {%attacker%.asdf}
else if victim is enderman:
add 5 to {%attacker%.asdf}
else if victim is player:
add 15 to {%attacker%.asdf}
this is my whole code
can't send in one so I divided into two
Posted by: 예준 from the skUnity Discord.
trigger:
set {_gui} to a new chest inventory with 1 row named "test"
set slot 0 of {_gui} to bedrock named "test" with lore "test"
set slot 1 of {_gui} to bedrock named "test" with lore "test"
set slot 2 of {_gui} to bedrock named "test" with lore "test"
set slot 3 of {_gui} to bedrock named "test" with lore "test"
set slot 4 of {_gui} to bedrock named "test" with lore "test"
set slot 5 of {_gui} to bedrock named "test" with lore "test"
set slot 6 of {_gui} to bedrock named "test" with lore "test"
set slot 7 of {_gui} to bedrock named "test" with lore "test"
set slot 8 of {_gui} to bedrock named "test" with lore "test"
set slot 9 of {_gui} to bedrock named "test" with lore "test"
open {_gui} to player
on inventory click:
if name of event-inventory is "test":
if index of event-slot is 0:
cancel event
execute op command "kill %player%"
if index of event-slot is 1:
cancel event
execute op command "gm 0 %player%"
else:
cancel event
Every 1 second:
loop all players:
send action bar "&c실험: %{%loop-player%.asdf}%" to loop-player
on join:
set title of player's scoreboard to "&bLe &3Title"
set line 15 of player's scoreboard to "&aPlayers:"
set line 13 of player's scoreboard to "&aMoney:"
set line 11 of player's scoreboard to "&aKills:"
set line 9 of player's scoreboard to "&aDeaths:"
while player is online:
set line 14 of player's scoreboard to "&7 - &bsize of all players"
set line 12 of player's scoreboard to "&7 - &bbalance of player"
set line 10 of player's scoreboard to "&7 - &bkill entity stat using player of player"
set line 8 of player's scoreboard to "&7 - &beaths stat of player"
wait 1 second
On first join:
add 1 to {%player%.asdf}
On death:
if attacker is player:
if victim is zombie:
add 1 to {%attacker%.asdf}
else if victim is spider:
add 2 to {%attacker%.asdf}
else if victim is enderman:
add 5 to {%attacker%.asdf}
else if victim is player:
add 15 to {%attacker%.asdf}
this is my whole code
can't send in one so I divided into two
Posted by: 예준 from the skUnity Discord.