command /swinia [] []: trigger: if player has permission "swinia.admin": if arg-1 is "set": if arg-2 is set: if arg-2 is 1 or 2 or 3 or 4 or 5: if arg-2 is not 5: set {swiniaa.%arg-2%} to location of player send "Ustawiono: %{swiniaa.%arg-2%}%" to the player else: set {swinka} to location of block at location of player send "Ustawiono: %{swinka}%" to the player every 2 real seconds: loop 1 times: if number of players in radius 7 around block at {swinka} is greater than 0: spawn pig at {swiniaa.1} set max health of last spawned entity to 0.5 set health of last spawned entity to 0.5 set name of last spawned entity to "&4Nooo, im died :c" ignite last spawned entity spawn pig at {swiniaa.2} set max health of last spawned entity to 0.5 set health of last spawned entity to 0.5 set name of last spawned entity to "&4Nooo, im died :c" ignite last spawned entity spawn pig at {swiniaa.3} set max health of last spawned entity to 0.5 set health of last spawned entity to 0.5 set name of last spawned entity to "&4Nooo, im died :c" ignite last spawned entity spawn pig at {swiniaa.4} set max health of last spawned entity to 0.5 set health of last spawned entity to 0.5 set name of last spawned entity to "&4Nooo, im died :c" ignite last spawned entity