set {_return} to getCooldownText(player, "rozdzka")
set {_next} to getCooldownTime(player, "rozdzka")
send action bar "&b&lRóżdżka &f&lWyrzutu &8>>&5 Pozostało &7&l%{_return}%" to player
options:
spawn: 400
command /spawn:
trigger:
if player's balance is < {@spawn}:
send "&cNie masz tyle pieniedzy!"
else:
remove {@spawn} from player's balance
teleport player to spawn
on command:
if command is "tpa":
if player's balance < {@spawn}:
cancel event
send "&cNie masz tyle pieniedzy!"
loop all players:
send "" to all players
#inne
on join:
set {online::*} to all players
send "" to {online::*}
#z funkcja
function getAllPlayers(t: text="") :: player:
loop all players:
add loop-player to {_return::*}
return {_return}
send "" to getAllPlayers()
#inne
function sendToAllPlayers(t: text="test"):
loop all players:
send {_t} to loop-player
sendToAllPlayers("wiadomosc")
options:
ref: 2 second
name: Elo
on join:
while player is online:
wipe player's sidebar
set name of sidebar of player to "{@name}"
set score "Zmienna: %{zmienna}%" in sidebar of player to 1
wait {@ref}
commans /wyspa [<text>]:
Trigger:
make player run command "/is %arg%" as op
on command:
if command is "is":
player is not op
send "msg"
Cancel event
Tuske chyba
every 60 seconds:
if health of {mob} > 0:
stop
if {spawn.mob.1} is set:
spawn 1 zombie at {spawn.mob.1}
set the spawned zombie's display name to "&1Ork &cLVL.1"
set the last spawned entity's max health to 8
heal the last spawned entity
set tool of last spawned entity to stick of unbreaking 10
set {mob} to last spawned entity