Facebook
From Witchpo, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 601
  1. command /swinia [<text>] [<number>]:
  2.         trigger:
  3.                 if player has permission "swinia.admin":
  4.                         if arg-1 is "set":
  5.                                 if arg-2 is set:
  6.                                         if arg-2 is 1 or 2 or 3 or 4 or 5:
  7.                                                 if arg-2 is not 5:
  8.                                                         set {swiniaa.%arg-2%} to location of player
  9.                                                         send "Ustawiono: %{swiniaa.%arg-2%}%" to the player
  10.                                                 else:
  11.                                                         set {swinka} to location of block at location of player
  12.                                                         send "Ustawiono: %{swinka}%" to the player
  13. every 2 real seconds:
  14.         loop 1 times:
  15.         if number of players in radius 7 around block at {swinka} is greater than 0:
  16.                 spawn pig at {swiniaa.1}
  17.                 set max health of last spawned entity to 0.5
  18.                 set health of last spawned entity to 0.5
  19.                 set name of last spawned entity to "&4Nooo, im died :c"
  20.                 ignite last spawned entity
  21.                 spawn pig at {swiniaa.2}
  22.                 set max health of last spawned entity to 0.5
  23.                 set health of last spawned entity to 0.5
  24.                 set name of last spawned entity to "&4Nooo, im died :c"
  25.                 ignite last spawned entity
  26.                 spawn pig at {swiniaa.3}
  27.                 set max health of last spawned entity to 0.5
  28.                 set health of last spawned entity to 0.5
  29.                 set name of last spawned entity to "&4Nooo, im died :c"
  30.                 ignite last spawned entity
  31.                 spawn pig at {swiniaa.4}
  32.                 set max health of last spawned entity to 0.5
  33.                 set health of last spawned entity to 0.5
  34.                 set name of last spawned entity to "&4Nooo, im died :c"
  35.                 ignite last spawned entity