Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break of stone:
- if "%region at player%" contains "kopalnia in world spawn":
- if player is in job Kopacz:
- set event-block to air
- wait 8 second
- set event-block to stone
- else:
- cancel event
- send "&cNie jestes gornikiem by kopac w kopalni" to player
- on rightclick with plain_glass_block:
- if player's tool is plain_glass_block named "&e&lMaska nurka &6&lLvl: I":
- if player is in job Nurek:
- cancel event
- set {_x} to player's tool
- set {_y} to helmet of the player
- set helmet of the player to {_x}
- set player's tool to {_y}
- remove {_x} from player
- send "&eZalozyles maske nurka lvl I" to player
- apply night vision to player for 9999999 second
- while player's helmet is plain_glass_block named "&e&lMaska nurka &6&lLvl: I":
- wait 10 seconds
- remove night vision from player
- else:
- send "&cNie jestes nurkiem by to zalozyc" to player
- if player's tool is plain_glass_block named "&e&lMaska nurka &6&lLvl: II":
- if player is in job Nurek:
- cancel event
- set {_x} to player's tool
- set {_y} to helmet of the player
- set helmet of the player to {_x}
- set player's tool to {_y}
- remove {_x} from player
- send "&eZalozyles maske nurka lvl II" to player
- apply water breathing 1 to player for 9999999 second
- apply night vision to player for 9999999 second
- while player's helmet is plain_glass_block named "&e&lMaska nurka &6&lLvl: II":
- wait 10 seconds
- remove night vision from player
- remove water breathing from player
- else:
- send "&cNie jestes nurkiem by to zalozyc" to player
- command /asd:
- trigger:
- send "%addons list%"
- on rightclick on entity:
- if name of entity is "&aKupiec ryb":
- if player is in job Rybak:
- open chest with 3 rows named "&2Sprzedaj ryby" to player
- else:
- send "&e&lFreeBuild &aMusisz byc w pracy rybak!" to player
- #on close inventory:
- # if inventory name of player's current inventory is "&2Sprzedaj ryby":
- # set {_bezw} to 0
- # set {_x} to 0
- # set {_kasar} to 0
- # set {_ile} to 0
- # loop 27 times:
- # set {_sellryby::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- # loop {_sellryby::%player%::*}:
- # if loop-value is not air:
- # if "%lore of loop-value%" contain "&bRyba zostala zlowiona przez":
- # set {_x} to item amount of loop-value
- # set {_lore} to "%uncoloured lore of loop-value%"
- # replace all "Ryba zostala zlowiona przez %player%||Wielkosc: " with "" in {_lore}
- # set {_a} to "%{_lore}%" parsed as number
- # set {_m} to {_a}/4
- # set {_kasa} to {_x}*{_m}
- # add {_kasa} to {_kasar}
- # add {_x} to {_ile}
- # wait 0.5 second
- # add {_kasar} to balance of player
- # send "&a[Kupiec ryb] &bDziekuje %player%, daje ci w zamian za %{_ile}% ryb %{_kasar}% $." to player
- # send action bar from "&6&lZarobiles &e%{_kasar}% $" to player set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
- options:
- tag: &e&lFreeBuild
- #=======================================nurek================
- command /nurekadd:
- trigger:
- if player has permission "op.sk":
- "%target block%" is "CHEST":
- set {_s} to size of {nurek.chests::*} + 1
- set {nurek.chests::%{_s}%} to location of target block
- send "&aUstawiles tchest nurka. Numer: &2%size of {nurek.chests::*}% &ana koordynatach &2%location of target block%" to player
- else:
- send "&cCzy %type of target block% wyglada jak CHEST?"
- command /nurekdel <number>:
- trigger:
- if player has permission "op.sk":
- {nurek.chests::%arg-number%} is set:
- {nurek.chests::%arg-number+1%} is set:
- set {_s} to size of {nurek.chests::*}
- set {nurek.chests::%arg-number%} to {nurek.chests::%{_s}%}
- delete {nurek.chests::%{_s}%}
- else:
- delete {nurek.chests::%arg-number%}
- send "&aUsunales tchest nurka. Numer: %arg-number%" to player
- else:
- send "&cNie ma skrzynki o takim numerze"
- command /nureklist:
- trigger:
- if player has permission "op.sk":
- send "&3&lLista skrzynek nurka:"
- loop {nurek.chests::*}:
- send " &e%loop-index%. &b%loop-value%"
- command /nurekchest:
- trigger:
- if {nurek.actual} is set:
- set block at location of {nurek.actual} to air
- delete {nurek.actual}
- set {_r} to random integer between 1 and size of {nurek.chests::*}
- set {nurek.actual} to location at {nurek.chests::%{_r}%}
- loop all players:
- if loop-player is in job Nurek:
- send loop-player title "&6&lWykryto skrzynie" with subtitle "Na kordach %{nurek.chests::%{_r}%}%" for 3 second
- send "{@tag} &6Centrum badawcze wykrylo skrzynie. Na kordach %{nurek.chests::%{_r}%}%" to loop-player
- set block at location of {nurek.chests::%{_r}%} to chest
- every 3 minute in "world":
- if {nurek.actual} is set:
- set block at location of {nurek.actual} to air
- delete {nurek.actual}
- set {_r} to random integer between 1 and size of {nurek.chests::*}
- set {nurek.actual} to location at {nurek.chests::%{_r}%}
- loop all players:
- if loop-player is in job Nurek:
- send loop-player title "&6&lWykryto skrzynie" with subtitle "Na kordach %{nurek.chests::%{_r}%}%" for 3 second
- send "{@tag} &6Centrum badawcze wykrylo skrzynie. Na kordach %{nurek.chests::%{_r}%}%" to loop-player
- set block at location of {nurek.chests::%{_r}%} to chest
- on rightclick on chest:
- if "%location of event-block%" is "%{nurek.actual}%":
- if player is in job Nurek:
- cancel event
- set event-block to air
- delete {nurek.actual}
- open chest with 3 rows named "&6Skrzynia skarbow" to player
- wait 1 tick
- set {_losslot} to 0
- loop 27 times:
- chance of 1%:
- set {_losowyrok} to a random integer between 650 and 1650
- set slot {_losslot} of current inventory of player to gold nugget of unbreaking 100 named "&e&lZloto pirata" with lore "&5Zloto pirata, jest bardzo cennym||&5przedmiotem na rynku. Jest ono wart bardzo duzo.|| ||&7Zloto jest z: %{_losowyrok}% roku"
- chance of 11%:
- set slot {_losslot} of current inventory of player to yellow dye of unbreaking 100 named "&6&lBursztyn" with lore "&5Bursztyn jest cennym przedmiotem na rynku"
- chance of 32%:
- set slot {_losslot} of current inventory of player to light gray dye of unbreaking 100 named "&f&lMuszelka" with lore "&5Muszelka jest mniej cennym przedmiotem||&5na rynku niz Bursztyn"
- add 1 to {_losslot}
- else:
- cancel event
- send "{@tag} &cAby otworzyc skrzynie skrabow musisz byc nurkiem!" to player
- on rightclick on entity:
- if name of entity is "&aMorski kupiec":
- if player is in job Nurek:
- set {napis::%player%} to 1
- if player's tool is not yellow dye of unbreaking 100 or light gray dye of unbreaking 100:
- send "&a[Morski kupiec] &cNie potrzebne mi to!!" to player
- if player's tool is yellow dye of unbreaking 100 named "&6&lBursztyn" with lore "&5Bursztyn jest cennym przedmiotem na rynku":
- set {_x} to item amount of player's tool
- remove player's tool from player
- set {_y} to random number between 0.88 and 5.6
- set {_kasa} to {_x}*{_y}
- add {_kasa} to balance of player
- send "&a[Morski kupiec] &bDobra robota %player%, daje ci w zamian za %{_x}% bursztyn %{_kasa}% $." to player
- set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
- add {_kasa}+{_x} to {exp.nurek::%player%}
- if player's tool is light gray dye of unbreaking 100 named "&f&lMuszelka" with lore "&5Muszelka jest mniej cennym przedmiotem||&5na rynku niz Bursztyn":
- set {_x} to item amount of player's tool
- remove player's tool from player
- set {_y} to random number between 0.77 and 3.2
- set {_kasa} to {_x}*{_y}
- add {_kasa} to balance of player
- send "&a[Morski kupiec] &bDobra robota %player%, daje ci w zamian za %{_x}% muszelek %{_kasa}% $." to player
- set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
- add {_kasa}+{_x} to {exp.nurek::%player%}
- wait 1 second
- if {exp.nurek::%player%} >= {wymagane.nurek::%player%}:
- if {napis::%player%} is 1:
- add 1 to {lvl.nurek::%player%}
- set {_zliczone.wymagane.nurek::%player%} to {wymagane.nurek::%player%}*2.5
- wait 1 tick
- set {wymagane.nurek::%player%} to {_zliczone.wymagane.nurek::%player%}
- delete {napis::%player%}
- wait 1 tick
- set {napis::%player%} to 0
- broadcast "{@tag} &aGracz %player% awansowal na %{lvl.nurek::%player%}% poziom nurka."
- else:
- send "{@tag} &aMusisz byc w pracy nurek!" to player
Advertisement
Add Comment
Please, Sign In to add comment