Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- t: &4[&aHZ&4]&f
- #Tutaj jest szans na potrójny drop.
- sz: 5%
- command /hazard [<text>] [<number>]:
- aliases: hz
- permission: hazard.daj
- trigger:
- if arg 1 is "daj":
- add 3 wool:1 named "&5Hazard" to the player's inventory
- send "{@t} Dostales itemy do stworzenia maszyny"
- stop
- if arg 1 is "usun":
- delete {haz1}
- delete {haz2}
- delete {haz3}
- send "{@t} Maszyna zostala usunieta!"
- set {haz.utw} to 0
- stop
- if arg 1 is "losowanie":
- if targeted block is sign:
- if arg 2 is set:
- if {haz3} is set:
- set line 1 of targeted block to "{@t}"
- set line 2 of targeted block to "&eLosuj"
- set line 3 of targeted block to "&2Koszt:"
- set line 4 of targeted block to "%arg 2%"
- set {haz.koszt} to arg 2
- set {haz.utw} to 1
- set {haz.mt} to location of targeted block
- stop
- send "{@t} Podaj jeszcze cene!"
- if arg 1 is not set:
- send " {@t} Komendy "
- send "{@t} hazard/hz daj - Daje bloki do stworzenia"
- send "{@t} hazard/hz usun - Usuwa caly hazard (bloki, cene itp)"
- send "{@t} hazard/hz losowanie |cena bez $| - Ustawia tabliczke i cene"
- stop
- on place wool:1:
- if name of player's tool is "&5Hazard":
- if {haz1} is not set:
- set {haz1} to location of event-block
- remove 1 wool named "&5Hazard" from player's inventory
- stop
- if {haz2} is not set:
- set {haz2} to event-block
- remove 1 wool named "&5Hazard" from player's inventory
- stop
- if {haz3} is not set:
- set {haz3} to event-block
- remove 1 wool named "&5Hazard" from player's inventory
- stop
- send "{@t} Maszyna jest juz ustawiona (%{haz1}%)"
- stop
- on rightclick on sign:
- if player's balance is bigger than {haz.koszt}:
- if {haz.utw} is 1:
- if location of clicked block is {haz.mt}:
- remove {hazard.koszt} from player's balance
- set {_b1} to random integer between 0 and 5
- set {_b2} to random integer between 0 and 5
- set {_b3} to random integer between 0 and 5
- send "{@t} Zaczynam Losowanie:"
- if {_b1} is 1:
- set block at {haz1} to diamond block
- if {_b1} is 2:
- set block at {haz1} to emerald block
- if {_b1} is 3:
- set block at {haz1} to iron block
- if {_b1} is 4:
- set block at {haz1} to gold block
- if {_b1} is 5:
- set block at {haz1} to wool:5
- if {_b2} is 1:
- set block at {haz2} to diamond block
- if {_b2} is 2:
- set block at {haz2} to emerald block
- if {_b2} is 3:
- set block at {haz2} to iron block
- if {_b2} is 4:
- set block at {haz2} to gold block
- if {_b2} is 5:
- set block at {haz2} to wool:5
- if {_b3} is 1:
- set block at {haz3} to diamond block
- if {_b3} is 2:
- set block at {haz3} to emerald block
- if {_b3} is 3:
- set block at {haz3} to iron block
- if {_b3} is 4:
- set block at {haz3} to gold block
- if {_b3} is 5:
- set block at {haz3} to wool:5
- if block at {haz1} and {haz2} and {haz3} is diamond block:
- chance of {@sz}:
- set {_blabla} to random integer between 25 and 70
- set {_blabla} to ({_blabla}*3)
- wait 1 tick
- give {_blabla} of diamond to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% diamentow! Jest to 3* wiekszy drop."
- stop
- set {_blabla} to random integer between 25 and 70
- wait 1 tick
- give {_blabla} of diamond to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% diamentow!"
- stop
- if block at {haz1} and {haz2} and {haz3} is emerald block:
- chance of {@sz}:
- set {_blabla} to random integer between 25 and 100
- set {_blabla} to ({_blabla}*3)
- wait 1 tick
- give {_blabla} of emerald to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% emeraldow! Jest to 3* wiekszy drop."
- stop
- set {_blabla} to random integer between 25 and 100
- wait 1 tick
- give {_blabla} of emerald to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% emeraldow!"
- stop
- if block at {haz1} and {haz2} and {haz3} is iron block:
- chance of {@sz}:
- set {_blabla} to random integer between 25 and 100
- set {_blabla} to ({_blabla}*3)
- wait 1 tick
- give {_blabla} of iron ingot to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% Zelaza! Jest to 3* wiekszy drop."
- stop
- set {_blabla} to random integer between 48 and 100
- wait 1 tick
- give {_blabla} of iron ingot to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% zelaza!"
- stop
- if block at {haz1} and {haz2} and {haz3} is gold block:
- chance of {@sz}:
- set {_blabla} to random integer between 25 and 100
- set {_blabla} to ({_blabla}*3)
- wait 1 tick
- give {_blabla} of gold ingot to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% Zlota! Jest to 3* wiekszy drop."
- stop
- set {_blabla} to random integer between 30 and 100
- wait 1 tick
- give {_blabla} of gold ingot to the player's inventory
- send "&bBrawo! Wygrales %{_blabla}% zlota!"
- stop
- if block at {haz1} and {haz2} and {haz3} is wool:5:
- chance of {@sz}:
- set {_blabla} to random integer between 2400 and 5500
- set {_blabla} to ({_blabla}*3)
- wait 1 tick
- add {_blabla} to the player's balance
- send "&bBrawo! Wygrales %{_blabla}% Monet! Jest to 3* wiekszy drop."
- stop
- set {_blabla} to random integer between 2400 and 5500
- wait 1 tick
- add {_blabla} to the player's balance
- send "&bBrawo! Wygrales %{_blabla}% Monet!"
- stop
- send "{@t} Zakonczylem losowanie. Brak wygranej."
- stop
- else:
- send "{@t} Maszyna nie jest poprawnie skonfigurowana!"
- send "Skontaktuj sie z administratorem."
- stop
- else:
- send "{@t} Nie masz pieniedzy aby losowac! (%{haz.koszt}%)"
Advertisement
Add Comment
Please, Sign In to add comment