Guest User

Untitled

a guest
Jun 9th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. command /pcase [<offlineplayer>] [<integer>] [<text>]:
  2. aliases: premiumcase, casee
  3. trigger:
  4. player has permission "case":
  5. arg 2 is not set:
  6. send " &8» &7Poprawne uzycie: &6/premiumcase <nick/all> <ilosc>"
  7. stop
  8. arg 1 is "all":
  9. loop all players:
  10. loop-player can hold arg 2 of chest named "&9&lPremiumCase":
  11. give loop-player arg 2 of chest named "&9&lPremiumCase"
  12. else:
  13. drop arg 2 of chest named "&9&lPremiumCase" at loop-player
  14. broadcast "&8» &7Caly serwer otrzymal &9&lPremiumCase &8(&c%arg 2%x&8)&7."
  15. execute player command "stb all &8» &7Caly serwer otrzymal &c%arg 2%x &9&lPremiumCase"
  16. execute player command "tb all &5&lCASE"
  17. stop
  18. arg 1 is not online:
  19. send "&cPodany gracz jest offline"
  20. stop
  21. set {_n} to arg 1's name
  22. loop all players:
  23. loop-player's name is "%{_n}%":
  24. set {_p} to loop-player
  25. send "&aDales %arg 1% %arg 2%x &9&lPremiumCase"
  26. send " &8» &7Otrzymales: &c%arg 2%x &l" to {_p}
  27. arg 1 can hold arg 2 of chest named "&9&lPremiumCase":
  28. give arg 2 of chest named "&9&lPremiumCase" to {_p}
  29. else:
  30. drop arg 2 of chest named "&9&lPremiumCase" at {_p}
  31. stop
  32. send "&8» &cNie masz dostepu do tej komendy! &7(case)"
  33. stop
  34. on place:
  35. block under event-block is end stone:
  36. stop
  37. block is not chest:
  38. stop
  39. player's tool is not chest named "&9&lPremiumCase":
  40. player's tool is not chest named "&9&lPrrrr":
  41. stop
  42. set event-block to air
  43. set {_i} to 0
  44. chance of 55%:
  45. drop diamond helmet of protection 4 and unbreaking 3 at event-block
  46. drop diamond chestplate of protection 4 and unbreaking 3 at event-block
  47. drop diamond leggings of protection 4 and unbreaking 3 at event-block
  48. drop diamond boots of protection 4 and unbreaking 3 at event-block
  49. drop 373:8233 at event-block
  50. drop 373:8233 at event-block
  51. add 1 to {_i}
  52. chance of 80%:
  53. drop 373:8233 at event-block
  54. drop 373:8233 at event-block
  55. drop 373:8226 at event-block
  56. drop 373:8226 at event-block
  57. add 1 to {_i}
  58. chance of 15%:
  59. drop diamond leggings of protection 4 and unbreaking 3 at event-block
  60. add 1 to {_i}
  61. chance of 15%:
  62. drop diamond boots of protection 4 and unbreaking 3 at event-block
  63. add 1 to {_i}
  64. chance of 20%:
  65. drop 64 emerald at event-block
  66. add 1 to {_i}
  67. chance of 20%:
  68. drop 64 gold block at event-block
  69. add 1 to {_i}
  70. chance of 20%:
  71. drop 64 emerald at event-block
  72. add 1 to {_i}
  73. chance of 40%:
  74. drop diamond pickaxe of efficiency 6, fortune 3 and unbreaking 3 at event-block
  75. add 1 to {_i}
  76. chance of 40%:
  77. drop diamond pickaxe of efficiency 6, fortune 3 and unbreaking 3 at event-block
  78. add 1 to {_i}
  79.  
  80. chance of 60%:
  81. drop diamond sword of sharpness 5 and fire aspect 2 at event-block
  82. add 1 to {_i}
  83. chance of 0.001%:
  84. add 1 to {_i}
  85. chance of 50%:
  86. drop 64 emerald block at event-block
  87. add 1 to {_i}
  88. chance of 50%:
  89. drop 64 tnt at event-block
  90. add 1 to {_i}
  91. chance of 30%:
  92. drop 16 ender pearl at event-block
  93. add 1 to {_i}
  94. chance of 2%:
  95. drop beacon at event-block
  96. send "&f&lCraft&7&l-&2&l4U&F&L.PL &8» &7Gracz &6%player% &7wydropil &bBEACON'a &7z &9&lPREMIUMCASE&7!" to all players
  97. add 1 to {_i}
  98. chance of 2%:
  99. drop diamond pickaxe of efficiency 10, fortune 3 and unbreaking 3 at event-block
  100. send "&f&lCraft&7&l-&2&l4U&F&L.PL &8» &7Gracz &6%player% &7wydropil &bKILOF 10/3/3 &7z &9&lPREMIUMCASE&7!" to all players
  101. add 1 to {_i}
  102.  
  103. if {_i} is 0:
  104. show mob spawner at event-block
Advertisement
Add Comment
Please, Sign In to add comment