Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {%player%.tartak} is not set:
- set {%player%.tartak} to 1
- if {%player%.drewno} is not set:
- set {%player%.drewno} to 0
- on break log or acacia wood or dark oak wood:
- if "%region at event-block%" contains "tartak1":
- add 1 to {%player%.drewno}
- if {%player%.drewno} is 10000:
- set {%player%.tartak} to 2
- send "&7[&8TARTAK&7] &eOdblokowales tartak 2!" to player
- if {%player%.drewno} is 75000:
- set {%player%.tartak} to 3
- send "&7[&8TARTAK&7] &eOdblokowales tartak 3!" to player
- if {%player%.drewno} is 200000:
- set {%player%.tartak} to 4
- send "&7[&8TARTAK&7] &eOdblokowales tartak 4!" to player
- if player has permission "tartak.vip":
- chance of 2%:
- give 1 stick named "&7&lChrust" to player
- stop
- else:
- chance of 1%:
- give 1 stick named "&7&lChrust" to player
- if "%region at event-block%" contains "tartak2":
- if {%player%.tartak} > 1:
- add 1 to {%player%.drewno}
- if {%player%.drewno} is 75000:
- set {%player%.tartak} to 3
- send "&7[&8TARTAK&7] &eOdblokowales tartak 3!" to player
- if {%player%.drewno} is 200000:
- set {%player%.tartak} to 4
- send "&7[&8TARTAK&7] &eOdblokowales tartak 4!" to player
- if player has permission "tartak.vip":
- chance of 2%:
- give 1 pumpkin seeds named "&e&lTrociny" to player
- else:
- chance of 1%:
- give 1 pumpkin seeds named "&e&lTrociny" to player
- stop
- else:
- cancel event
- send "&7[&8TARTAK&7] &eNie masz dostepu do tego tartaku!" to player
- if "%region at event-block%" contains "tartak3":
- if {%player%.tartak} > 2:
- add 1 to {%player%.drewno}
- if {%player%.drewno} is 200000:
- set {%player%.tartak} to 4
- send "&7[&8TARTAK&7] &eOdblokowales tartak 4!" to player
- if player has permission "tartak.vip":
- chance of 2%:
- give 1 dye:14 named "&6&lZywica" to player
- stop
- else:
- chance of 1%:
- give 1 dye:14 named "&6&lZywica" to player
- else:
- cancel event
- send "&7[&8TARTAK&7] &eNie masz dostepu do tego tartaku!" to player
- if "%region at event-block%" contains "tartak4":
- if {%player%.tartak} > 3:
- add 1 to {%player%.drewno}
- if player has permission "tartak.vip":
- chance of 2%:
- give 1 leather named "&8&lKora" to player
- stop
- else:
- chance of 1%:
- give 1 leather named "&8&lKora" to player
- else:
- cancel event
- send "&7[&8TARTAK&7] &eNie masz dostepu do tego tartaku!" to player
- on pickup:
- if "%region at player%" contains "tartak2":
- if {%player%.tartak} < 2:
- cancel event
- if "%region at player%" contains "tartak3":
- if {%player%.tartak} < 3:
- cancel event
- if "%region at player%" contains "tartak4":
- if {%player%.tartak} < 4:
- cancel event
- command /tartak [<player>]:
- executable by: console and player
- trigger:
- if player-arg is set:
- if player has permission "tartak.admin":
- if {%player-arg%.tartak} is set:
- send "&7[&8TARTAK&7] &eGracz %player-arg% ma dostep do tartaku %{%player-arg%.tartak}%" to player
- else:
- send "&7[&8TARTAK&7] &eNie odnaleziono gracza" to player
- stop
- else:
- send "&7[&8TARTAK&7] &eMasz dostep do tartaku %{%player%.tartak}%" to player
- else:
- send "&7[&8TARTAK&7] &eMasz dostep do tartaku %{%player%.tartak}%" to player
- command /tartakustaw [<player>] [<number>]:
- executable by: console and player
- trigger:
- if player has permission "tartak.admin":
- if player-arg is set:
- if number-arg is set:
- set {%player-arg%.tartak} to number-arg
- send "&7[&8TARTAK&7] &eUstawiles %player-arg% dostep do tartaku %number-arg%" to player
- else:
- send "&7[&8TARTAK&7] &ePodaj wartosc od 1 do 4" to player
- else:
- send "&7[&8TARTAK&7] &eNie masz permisji!" to player
- command /drewnoustaw [<player>] [<number>]:
- executable by: console and player
- trigger:
- if player has permission "tartak.admin":
- if player-arg is set:
- if number-arg is set:
- set {%player-arg%.drewno} to number-arg
- send "&7[&8TARTAK&7] &eUstawiles %player-arg% %number-arg% zniszczonego drewna" to player
- else:
- send "&7[&8TARTAK&7] &eNie masz permisji!" to player
- command /drewno [<player>]:
- executable by: console and player
- trigger:
- if player-arg is set:
- if player has permission "tartak.admin":
- send "&7[&8TARTAK&7] &eGracz %player-arg% zniszczyl %{%player-arg%.drewno}% drewna" to player
- stop
- send "&7[&8TARTAK&7] &eZniszczyles %{%player%.drewno}% drewna" to player
- else:
- send "&7[&8TARTAK&7] &eZniszczyles %{%player%.drewno}% drewna" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement