Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skrypt by WiczekPG
- # Zezwalam:
- # - Na edycje kodu w miare swoich potrzeb
- # Nie zezwalam:
- # - na kopiowanie skryptu
- # - na podszywanie sie pod autora
- # - na sprzedawanie skryptu (Jak by komuś coś się pokręciło ;o)
- on join:
- if {stonemined::%player%} is not set:
- set {stonemined::%player%} to 0
- if {coins::%player%} is not set:
- set {coins::%player%} to 0
- if {stonemustmined::%player%} is not set:
- set {stonemustmined::%player%} to 15
- if {poziom::%player%} is not set:
- set {poziom::%player%} to 0
- if {drzewko::%player%} is not set:
- set {drzewko::%player%} to 0
- if {coins2::%player%} is not set:
- set {coins2::%player%} to 0
- loop 6 times:
- if {skill%loop-number%::%player%} is not set:
- set {skill%loop-number%::%player%} to 0
- on mine stone:
- add 1 to {stonemined::%player%}
- add 1 to {stone::%player%}
- if {coins2::%player%} is 2 or 3 or 4:
- add {coins2::%player%} to {coins::%player%}
- wait 10 seconds
- set {coins2::%player%} to 0
- else:
- add 1 to {coins::%player%}
- if {stonemined::%player%} is higher than {stonemustmined::%player%}-1:
- add 1 to {poziom::%player%}
- set {stonemined::%player%} to 0
- send "&7Awansowales na kolejny poziom kopania! &8(&c%{poziom::%player%}% &7LvL&8)"
- spawn 250 of particle spell:1 offset by 0, 0, 0 at location of player
- add 15 to {stonemustmined::%player%}
- give 1 gold ingot to player
- command /profil:
- trigger:
- open chest with 1 rows named "&7Profil&8: &c%player%" to player
- wait 1 tick
- format slot 0 of player with player head named "&7Gracz&8: &c%player%" with lore "&7Coinsy&8: &c%{coins::%player%}%||&7Wykopany stone ogolnie&8: &c%{stone::%player%}%||&7LvL&8: &c%{poziom::%player%}%||&7Nastepny LvL&8: &c%{stonemined::%player%}%&8/&c%{stonemustmined::%player%}%" to be unstealable
- format slot 8 of player with diamond pickaxe named "&7Skille" with lore "&7Kliknij, aby zobaczyc!||&7Takze pod komenda &c/skille" to run "sudo %player% skille"
- on rightclick on player:
- if player is sneaking:
- send "&8&m-------------------------"
- send "&7Gracz&8: &c%clicked entity%"
- send "&7Coinsy&8: &c%{coins::%clicked entity%}%"
- send "&7Wykopane ogolnie&8: &c%{stone::%clicked entity%}%"
- send "&7LvL&8: &c%{poziom::%clicked entity%}%"
- send "&7Nastepny LvL&8: &c%{stonemined::%clicked entity%}%&8/&c%{stonemustmined::%clicked entity%}%"
- send "&8&m-------------------------"
- command /reset [<player>]:
- trigger:
- if player has permission "skillStones.admin":
- if arg is not set:
- set {stonemined::%player%} to 0
- set {coins::%player%} to 0
- set {stonemustmined::%player%} to 25
- set {poziom::%player%} to 0
- set {stone::%player%} to 0
- loop 6 times:
- set {skill%loop-number%::%player%} to 0
- else:
- set {stonemined::%arg%} to 0
- set {coins::%arg%} to 0
- set {stonemustmined::%arg%} to 25
- set {poziom::%arg%} to 0
- set {stone::%arg%} to 0
- loop 6 times:
- set {skill%loop-number%::%arg%} to 0
- else:
- send "&cBlad: &4Nie masz uprawnien do tego!"
- command /skille:
- trigger:
- open chest with 6 rows named "&cDrzewko Skilla" to player
- wait 1 tick
- format slot 49 of player with brown stained glass pane named "&7" to be unstealable
- format slot 40 of player with brown stained glass pane named "&7" to be unstealable
- format slot 39 of player with brown stained glass pane named "&7" to be unstealable
- format slot 41 of player with brown stained glass pane named "&7" to be unstealable
- format slot 31 of player with brown stained glass pane named "&7" to be unstealable
- if {skill6::%player%} is 0:
- format slot 36 of player with red stained glass pane named "&c&l✘ &7Coin x4 &c&l✘" with lore "&7Minimum LvL&8: &c75||&7Zaplata&8: &c500 Coins" to run "addskill %player% 6"
- else:
- format slot 36 of player with light green stained glass pane named "&a&l✔ &7Coin x4 &a&l✔" with lore "&7Odblokowane!" to be unstealable
- if {skill5::%player%} is 0:
- format slot 37 of player with red stained glass pane named "&c&l✘ &7Coin x3 &c&l✘" with lore "&7Minimum LvL&8: &c50||&7Zaplata&8: &c250 Coins" to run "addskill %player% 5"
- else:
- format slot 37 of player with light green stained glass pane named "&a&l✔ &7Coin x3 &a&l✔" with lore "&7Odblokowane!" to be unstealable
- if {skill4::%player%} is 0:
- format slot 38 of player with red stained glass pane named "&c&l✘ &7Coin x2 &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 4"
- else:
- format slot 38 of player with light green stained glass pane named "&a&l✔ &7Coin x2 &a&l✔" with lore "&7Odblokowane!" to be unstealable
- if {skill1::%player%} is 0:
- format slot 42 of player with red stained glass pane named "&c&l✘ &7Haste I &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 1"
- else:
- format slot 42 of player with light green stained glass pane named "&a&l✔ &7Haste I &a&l✔" with lore "&7Odblokowane!" to be unstealable
- if {skill2::%player%} is 0:
- format slot 43 of player with red stained glass pane named "&c&l✘ &7Haste II &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 2"
- else:
- format slot 43 of player with light green stained glass pane named "&a&l✔ &7Haste II &a&l✔" with lore "&7Odblokowane!" to be unstealable
- if {skill3::%player%} is 0:
- format slot 44 of player with red stained glass pane named "&c&l✘ &7Haste III &c&l✘" with lore "&7Minimum LvL&8: &c75||&7Zaplata&8: &c500 Coins" to run "addskill %player% 3"
- else:
- format slot 44 of player with light green stained glass pane named "&a&l✔ &7Haste III &a&l✔" with lore "&7Odblokowane!" to be unstealable
- command /addskill <player> <number>:
- executable by: console
- trigger:
- if arg 2 is 1:
- if {poziom::%arg 1%} is higher than 24:
- if {skill1::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 249:
- set {skill1::%arg 1%} to 1
- remove 250 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cHaste I &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c25&8)" to arg 1
- if arg 2 is 2:
- if {poziom::%arg 1%} is higher than 49:
- if {skill1::%arg 1%} is 1:
- if {skill2::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 249:
- set {skill2::%arg 1%} to 1
- remove 250 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cHaste II &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cHaste I&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c50&8)" to arg 1
- if arg 2 is 3:
- if {poziom::%arg 1%} is higher than 74:
- if {skill1::%arg 1%} is 1:
- if {skill2::%arg 1%} is 1:
- if {skill3::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 499:
- set {skill3::%arg 1%} to 1
- remove 500 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cHaste III &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie masz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cHaste II&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cHaste I&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c75&8)" to arg 1
- if arg 2 is 4:
- if {poziom::%arg 1%} is higher than 24:
- if {skill4::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 249:
- set {skill4::%arg 1%} to 1
- remove 250 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cCoin 2x &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c25&8)" to arg 1
- if arg 2 is 5:
- if {poziom::%arg 1%} is higher than 49:
- if {skill4::%arg 1%} is 1:
- if {skill5::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 249:
- set {skill5::%arg 1%} to 1
- remove 250 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cCoin x3 &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cCoin x2&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c50&8)" to arg 1
- if arg 2 is 6:
- if {poziom::%arg 1%} is higher than 74:
- if {skill4::%arg 1%} is 1:
- if {skill5::%arg 1%} is 1:
- if {skill6::%arg 1%} is 0:
- if {coins::%arg 1%} is higher than 499:
- set {skill6::%arg 1%} to 1
- remove 500 from {coins::%arg 1%}
- close arg 1's inventory
- send "&7Skille&8: &7Skill &cCoin x4 &7zostal aktywowany !" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie masz tylu &cCoinsow&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cCoin x3&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Nie posiadasz skilla &cCoin x2&7!" to arg 1
- else:
- close arg 1's inventory
- send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c75&8)" to arg 1
- on rightclick with pickaxe:
- if {cooldown::%player%} is 0:
- send "&7Aktywowales umiejetosci!"
- if {skill1::%player%} is 1:
- apply haste 1 to player for 10 seconds
- if {skill2::%player%} is 1:
- apply haste 2 to player for 10 seconds
- if {skill3::%player%} is 1:
- apply haste 3 to player for 10 seconds
- if {skill4::%player%} is 1:
- set {coins2::%player%} to 2
- if {skill5::%player%} is 1:
- set {coins2::%player%} to 3
- if {skill6::%player%} is 1:
- set {coins2::%player%} to 4
- set {cooldown::%player%} to 600
- else:
- send "&7Musisz odczekac jeszcze &c%{cooldown::%player%}% &7sekund przed uzyciem skilla!"
- every 1 second:
- loop all players:
- if {cooldown::%loop-player%} is 0:
- stop
- else:
- remove 1 from {cooldown::%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment