on place:
if player's tool is sponge named "&8[&cLava remover&8]":
loop all blocks in radius 10 around event-location:
if loop-block is lava:
set loop-block to air
EDIT: Czemu dajecie raki? Poprawiłem skrypt wyżej, to chyba dobrze?
on damage:
if victim's health < damage:
send attacker title "&c&lZabiles gracza %victim%!" with subtitle " "
cancel event
heal victim
apply blindness 1 to victim for 10 second
apply slowness 10 to victim for 10 second
teleport victim to location at {spawn}
loop 5 times:
set {_t} to 5
if {_t} > 0:
send "&cOdrodzenie za %{_t}% sekund" to victim
remove 1 from {_t}
else:
remove all effects from victim
command /dsetspawn [<text>]:
trigger:
set {spawn} to location at player
send "&aUstawiles spawn smierci!"
on damage:
if victim's health < damage:
send attacker title "&c&lZabiles gracza %victim%!" with subtitle " "
cancel event
heal victim
apply blindness 1 to victim for 10 second
apply slowness 10 to victim for 10 second
teleport victim to location at {spawn}
loop 5 times:
set {_t} to 5
if {_t} > 0:
send "&cOdrodzenie za %{_t}% sekund" to victim
remove 1 from {_t}
else:
remove all effects from victim
command /dsetspawn [<text>]:
trigger:
set {spawn} to location at player
send "&aUstawiles spawn smierci!"
nie testowałem
%command% to komenda
jeśli chcesz użyć argumenty po komendzie musisz użyć %argument%
np.
if command is "command":
if argument is "argument":
send "%command% %argument%"
command /powiekszb [<text>]:
trigger:
if {d} is not set:
set {d} to 5
if player has {d} of diamond block:
remove {d} diamond blocks from player's inventory
set {d} to {d} * 2
execute console command "worldborder add 150"
send "&aPowiekszyles border o 150 kratek!"
else:
send "&cPotrzebujesz %{d}% diamentowych blokow!"
jak nie zadziała to spróbuj if player's inventory contains ...
command /powiekszb [<text>]:
trigger:
if {d} is not set:
set {d} to 5
if player has {d} diamond blocks:
remove {d} diamond blocks from player's inventory
set {d} to {d} * 2
execute console command "worldborder add 150"
send "&aPowiekszyles border o 150 kratek!"
else:
send "&cPotrzebujesz %{d}% diamentowych blokow!"
command /setspawn [<text>]:
permission: command.setspawn
trigger:
set {spawn} to player's location
command /spawn [<text>]:
trigger:
teleport player to location at {spawn}