Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autorstwa nie przyznawaj sobie :D
- command /regen [<text>] [<integer>]:
- trigger:
- if arg 1 is not set:
- send "/regen set ID (1-10)"
- send "/regen delete ID (1-10)"
- send "/regen tp ID (1-10)"
- stop
- if arg 1 is "set":
- if arg 2 is not set:
- send "/regen set ID 1-10"
- stop
- if arg 2 is smaller than 1:
- send "ID musi byc dodatnie!"
- stop
- if arg 2 is larger than 10:
- send "ID nie moze byc wieksze od 10!"
- stop
- loop {punkt::*}:
- if "%loop-index%" is "%arg 2%":
- send "Takie ID juz istnieje!"
- stop
- set {punkt::%arg 2%} to location of player
- send "Ustawiles punkt ID: %arg 2%"
- if arg 1 is "delete":
- if arg 2 is not set:
- send "/regen delete ID (1-10}"
- stop
- if arg 2 is smaller than 1:
- send "ID musi byc dodatnie!"
- stop
- if arg 2 is larger than 10:
- send "ID nie moze byc wieksze od 10!"
- stop
- loop {punkt::*}:
- if "%loop-index%" is "%arg 2%":
- delete {punkt::%arg 2%}
- send "Usunales punkt o ID: %arg 2%"
- stop
- send "Nie ma takiego punku o id: %arg 2%"
- stop
- if arg 1 is "tp":
- if arg 2 is not set:
- send "/regen tp ID (1-10}"
- stop
- if arg 2 is smaller than 1:
- send "ID musi byc dodatnie!"
- stop
- if arg 2 is larger than 10:
- send "ID nie moze byc wieksze od 10!"
- stop
- loop {punkt::*}:
- if "%loop-index%" is "%arg 2%":
- teleport player to {punkt::%arg 2%}
- send "Teleportowales sie do punktu ID: %arg 2%"
- stop
- send "Nie ma takiego punku o id: %arg 2%"
- stop
- on death:
- victim is player
- set {_s} to location of victim
- loop {punkt::*}:
- #loop-index - ID
- #loop-value - lokazja respawnu
- if distance between loop-value and {_s} is larger than 20:
- set {r.%victim%} to loop-value
- exit loop
- on respawn:
- wait 2 tick
- if {r.%player%} is set:
- teleport player to {r.%player%}
- clear {r.%player%}
- set player's food level to 4
- set player's health to 4
Advertisement
Add Comment
Please, Sign In to add comment