Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =================
- # ThirstBar by niccosaint
- # Zakazane:
- # - Usuwanie tresci o autorze!
- # - Udostepnaniu skryptu innym!
- # - Podszywanie sie pod autora!
- # - Uzywanie kodu skryptu w swoich skryptach!
- # - Zarabianie na skrypcie!
- # Dozwolone:
- # - Zmienianie configu na wlasne potrzeby
- # - Dodawanie wlasnego kodu
- # =================
- # Konfiguracja
- options:
- # Na jakich swiatach skrypt bedzie dzialal ?
- world: "Swiat1"
- world2: "Swiat2"
- # Co ile sekund bedzie schodzilo pragnienie ?
- cd: 30
- # Koniec konfigu
- # NIE DOTYKAC! xD
- on xp spawn:
- cancel event
- every {@cd} seconds:
- loop all players in {@world} or {@world2}:
- if loop-player's level > 100:
- if loop-player's level > 149:
- apply regeneration 1 to loop-player for 10 seconds
- reduce loop-player's level by 2
- else:
- apply regeneration 1 to loop-player for 3 seconds
- set loop-player's level to 100
- if loop-player's level < 5:
- send "&3Wody..." to loop-player
- if loop-player's level > 1:
- reduce loop-player's level by 1
- else:
- kill loop-player
- set loop-player's level to 100
- on drink:
- if player is in {@world} or {@world2}:
- if player's tool is water bottle named "&7Czysta woda":
- increase player's level by 10
- else if player's tool is water bottle:
- increase player's level by 5
- chance of 10%:
- apply poison 1 to player for 10 seconds
- on eat:
- if player is in {@world} or {@world2}:
- if player's tool is apple or melon:
- increase player's level by 2
- if player's tool is soup:
- increase player's level by 3
- if player's tool is carrot or potato:
- increase player's level by 1
- if player's tool is golden apple or enchanted golden apple:
- increase player's level by 10
- command /water [<text>]:
- permission: water.admin
- permission message: &4Brak dostepu
- trigger:
- if arg 1 is not set:
- send "&6&m----------&6< &4ThirstBar by niccosaint &6>&6&m----------" to player
- send "&b/water get &a- Otrzymaj butelke czystej wody" to player
- send "&b/water refill &a- Zaspokoj pragnienie" to player
- send "&6&m------------------------------------" to player
- if arg 1 is "get":
- give 1 water bottle named "&7Czysta woda" to player
- if arg 1 is "refill":
- set player's level to 100
Advertisement
Add Comment
Please, Sign In to add comment