Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- maxkoxy: 1
- maxrefy: 16
- maxperly: 4
- maxstrzaly: 24
- maxsnieg: 8
- on load:
- set {maxkoxy} to {@maxkoxy}
- set {maxrefy} to {@maxrefy}
- set {maxperly} to {@maxperly}
- set {maxstrzaly} to {@maxstrzaly}
- set {maxsnieg} to {@maxsnieg}
- variables:
- {ws:koxy::%player%} = 0
- {ws:refy::%player%} = 0
- {ws:perly::%player%} = 0
- {ws:strzaly::%player%} = 0
- {ws:snieg::%player%} = 0
- on any move:
- if player has {maxkoxy} + 1 of golden apple:1:
- loop 230 times:
- if player has {maxkoxy} + 1 of golden apple:1:
- remove 1 golden apple:1 from player
- add 1 to {ws:koxy::%player%}
- add 1 to {_num1}
- send "&6Depozyt: &eMiales zbyt duza ilosc koxow przy sobie! &eDo schowka zostalo przeniesione &a%{_num1}% &6koxow"
- if player has {maxrefy} + 1 of golden apple:0:
- loop 230 times:
- if player has {maxrefy} + 1 of golden apple:0:
- remove 1 golden apple:0 from player
- add 1 to {ws:refy::%player%}
- add 1 to {_num2}
- send "&6Depozyt: &eMiales zbyt duza ilosc refow przy sobie! &eDo schowka zostalo przeniesione &a%{_num2}% &6refow"
- if player has {maxperly} + 1 of ender pearl:
- loop 230 times:
- if player has {maxperly} + 1 of ender pearl:
- remove 1 ender pearl from player
- add 1 to {ws:perly::%player%}
- add 1 to {_num3}
- send "&6Depozyt: &eMiales zbyt duza ilosc perel przy sobie! &eDo schowka zostalo przeniesione &a%{_num3}% &6perel"
- if player has {maxstrzaly} + 1 of arrow:
- loop 230 times:
- if player has {maxstrzaly} + 1 of attow:
- remove 1 arrow from player
- add 1 to {ws:strzaly::%player%}
- add 1 to {_num4}
- send "&6Depozyt: &eMiales zbyt duza ilosc strzal przy sobie! &eDo schowka zostalo przeniesione &a{_num4} &6strzal"
- if player has {maxsnieg} + 1 of snowball:
- loop 230 times:
- if player has {maxsnieg} + 1 of snowball:
- remove 1 snowball from player
- add 1 to {ws:snieg::%player%}
- add 1 to {_num5}
- send "&6Depozyt: &eMiales zbyt duza ilosc sniegu przy sobie! &eDo schowka zostalo przeniesione &a{_num4} &6sniegu"
- command /schowek [<text>]:
- trigger:
- close player's inventory
- open chest with 1 rows named "&&6Depozyt: &a%player%" to player
- loop 9 times:
- set player's current inventory's slot loop-number -1 to blue glass pane of unbreaking 10 named " "
- set player's current inventory's slot 1 to snowball named "&6Sniezki" with lore "||&6Zdeponowane: &a%{ws:snieg::%player%}%||&6Limit: &a%{maxsnieg}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 2 to arrow named "&6Strzaly" with lore "||&6Zdeponowane: &a%{ws:strzaly::%player%}%||&6Limit: &a%{maxstrzaly}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 4 to golden apple:1 named "&6Koxy" with lore "||&6Zdeponowane: &a%{ws:koxy::%player%}%||&6Limit: &a%{maxkoxy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 5 to golden apple:0 named "&6Refile" with lore "||&6Zdeponowane: &a%{ws:refy::%player%}%||&6Limit: &a%{maxrefy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 6 to ender pearl named "&6Perly" with lore "||&6Zdeponowane: &a%{ws:perly::%player%}%||&6Limit: &a%{maxperly}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- on inventory click:
- inventory name of player's current inventory = "&6Depozyt: &a%player%":
- cancel event
- clicked slot = 4:
- player has {maxkoxy} of golden apple:1:
- send "&4Błąd: &cMasz juz maksymalna ilosc koxow w eq!"
- stop
- player can hold 1 golden apple:1:
- if clicked type is left mouse button or right mouse button:
- player don't have {maxkoxy} of golden apple:1:
- {ws:koxy::%player%} > 0:
- add 1 golden apple:1 to player
- remove 1 from {ws:koxy::%player%}
- set action bar of player to "&6Schowek: &eWyplaciles jednego koxa!"
- else:
- send "&4Błąd: &cNie masz tyle koxow w schowku!"
- else:
- loop {maxkoxy} times:
- player don't have {maxkoxy} of golden apple:1:
- {ws:koxy::%player%} > 0:
- add 1 golden apple:1 to player
- remove 1 from {ws:koxy::%player%}
- set action bar of player to "&6Schowek: &eKoxy do limitu zostaly wyplacone!"
- else:
- send "&4Błąd: &cNie masz tyle koxow w schowku!"
- else:
- send "&&4Błąd: &cNie masz tyle miejsca w eq!"
- clicked slot = 5:
- player has {maxrefy} of golden apple:0:
- send "&4Błąd: &cMasz juz maksymalna ilosc refow w eq!"
- stop
- player can hold golden apple:0:
- if clicked type is left mouse button or right mouse button:
- player don't have {maxrefy} of golden apple:0:
- {ws:refy::%player%} > 0:
- add 1 golden apple:0 to player
- remove 1 from {ws:refy::%player%}
- set action bar of player to "&6Schowek: &eWyplaciles jednego refa!"
- else:
- send "&4Błąd: &cNie masz tyle refow w schowku!"
- else:
- loop {maxrefy} times:
- player don't have {maxrefy} of golden apple:0:
- {ws:refy::%player%} > 0:
- add 1 golden apple:0 to player
- remove 1 from {ws:refy::%player%}
- set action bar of player to "&6Schowek: &eRefy do limitu zostaly wyplacone!"
- else:
- send "&4Błąd: &cNie masz tyle refow w schowku!"
- else:
- send "&4Błąd: &cNie masz tyle miejsca w eq!"
- clicked slot = 6:
- player has {maxperly} of ender pearl:
- send "&4Błąd: &cMasz juz maksymalna ilosc perel w eq!"
- stop
- player can hold ender pearl:
- if clicked type is left mouse button or right mouse button:
- player don't have {maxperly} of ender pearl:
- {ws:perly::%player%} > 0:
- add 1 ender pearl to player
- remove 1 from {ws:refy::%player%}
- set action bar of player to "&6Schowek: &eWyplaciles jedna perle!"
- else:
- send "&4Błąd: &cNie masz tyle perel w schowku!"
- else:
- loop {maxperly} times:
- player don't have {maxperly} of ender pearl:
- {ws:perly::%player%} > 0:
- add 1 ender pearl to player
- remove 1 from {ws:perly::%player%}
- set action bar of player to "&6Schowek: &ePerly do limitu zostaly wyplacone!"
- else:
- send "&4Błąd: &cNie masz tyle perel w schowku!"
- else:
- send "&4Błąd: &cNie masz tyle miejsca w eq!"
- clicked slot = 1:
- player has {maxsnieg} of snowball:
- send "&4Błąd: &cMasz juz maksymalna ilosc sniezek w eq!"
- stop
- player can hold snowball:
- if clicked type is left mouse button or right mouse button:
- player don't have {maxsnieg} of snowball:
- {ws:snieg::%player%} > 0:
- add 1 snowball to player
- remove 1 from {ws:snieg::%player%}
- set action bar of player to "&6Schowek: &eWyplaciles jedna sniezke!"
- else:
- send "&4Błąd: &cNie masz tyle sniezek w schowku!"
- else:
- loop {maxsnieg} tiems:
- player don't have {maxsnieg} of snowball:
- {ws:snieg::%player%} > 0:
- add 1 snowball to player:
- remove 1 from {ws:snieg::%player%}
- set action bar of player to "&6Schowek: &eSniezki do limitu zostaly wyplacone!"
- else:
- send "&4Błąd: &cNie masz tyle sniezek w schowku!"
- else:
- send "&4Błąd: &cNie masz tyle miejsca w eq!"
- clicked slot = 2:
- player has {maxstrzaly} of arrow:
- send "&4Błąd: &cMasz juz maksymalna ilosc strzal w eq!"
- stop
- player can hold arrow:
- if clicked type is left mouse button or right mouse button:
- player don't have {maxstrzaly} of arrow:
- {ws:strzaly::%player%} > 0:
- add 1 arrow to player
- remove 1 from {ws:strzaly::%player%}
- set action bar of player to "&6Schowek: &eWyplaciles jedna strzale!"
- else:
- send "&4Błąd: &cNie masz tyle strzal w schowku!"
- else:
- loop {maxstrzaly} tiems:
- player don't have {maxstrzaly} of arrow:
- {ws:strzaly::%player%} > 0:
- add 1 arrow to player:
- remove 1 from {ws:strzaly::%player%}
- set action bar of player to "&6Schowek: &eStrzaly do limitu zostaly wyplacone!"
- else:
- send "&4Błąd: &cNie masz tyle strzal w schowku!"
- else:
- send "&4Błąd: &cNie masz tyle miejsca w eq!"
- clicked slot = 1 or 2 or 4 or 5 or 6:
- set player's current inventory's slot 1 to snowball named "&6Sniezki" with lore "||&6Zdeponowane: &a%{ws:snieg::%player%}%||&6Limit: &a%{maxsnieg}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 2 to arrow named "&6Strzaly" with lore "||&6Zdeponowane: &a%{ws:strzaly::%player%}%||&6Limit: &a%{maxstrzaly}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 4 to golden apple:1 named "&6Koxy" with lore "||&6Zdeponowane: &a%{ws:koxy::%player%}%||&6Limit: &a%{maxkoxy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 5 to golden apple:0 named "&6Refile" with lore "||&6Zdeponowane: &a%{ws:refy::%player%}%||&6Limit: &a%{maxrefy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
- set player's current inventory's slot 6 to ender pearl named "&6Perly" with lore "||&6Zdeponowane: &a%{ws:perly::%player%}%||&6Limit: &a%{maxperly}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
Advertisement
Add Comment
Please, Sign In to add comment