Guest User

Untitled

a guest
Apr 20th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. command /luckyblock [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send "test"
  5. send "test"
  6. send "test"
  7. stop
  8. if arg 1 is "daj":
  9. give sponge named "&e&lLucky&6&lBlock" to player
  10. send "&7&oOtrzymales Lucky Block."
  11. stop
  12. if arg 1 is "edytuj":
  13. open chest with 6 rows named "&e&l&oLucky&6&l&oBlock &c- Edit"
  14. wait 2 tick
  15. loop {lucky.gui::*}:
  16. set player's current inventory's slot loop-Index parsed as integr to loop-value
  17. stop
  18. on inventory close:
  19. if "%inventory name of player's current inventory%" is "&e&l&oLucky&6&l&oBlock &c- Edit":
  20. set {_i} to 0
  21. loop 54 times:
  22. set {lucky.gui::%{_i%}%} to player's current inventory's slot {_i}
  23. add 1 to {_i}
  24. stop
  25.  
  26. on place:
  27. if player's tool is sponge named "&e&lLucky&6&lBlock":
  28. remove 1 sponge named "&e&lLucky&6&lBlock" from player
  29. loop 1000 times:
  30. loop {lucky.gui::*}:
  31. chance of 100/size of {lucky.gui::*}%:
  32. set {_item} to loop-value
  33. exit loop
  34. if {_item} to loop-value
  35. exit loop
  36. give {_item} to player
  37. send "&6&oOtrzymales %{_item}% z &e&lLucky&6&lBlock"
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment