hamukichi

Untitled

Oct 7th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. command /addgachaitem:
  2. permission: admin.admin
  3. trigger:
  4. if player's tool is not set:
  5. message "景品に設定するアイテムを持ってください。"
  6. stop
  7. if player's tool is set:
  8. add player's tool to {reward::*}
  9. message "景品を設定しました。"
  10.  
  11. command /removegachaitem:
  12. permission: admin.admin
  13. trigger:
  14. if player's tool is not set:
  15. message "削除するアイテムを持ってください。"
  16. stop
  17. if player's tool is set:
  18. loop {reward::*}:
  19. loop-value is player's tool
  20. set {_check} to 1
  21. remove loop-value from {reward::*}
  22. message "削除しました。"
  23. {_check} isn't set
  24. message "そのアイテムは景品に含まれていません。"
  25.  
  26. on right click holding a enchanted book:
  27. name of player's tool is "&bドラゴンボールガチャ"
  28. wait a tick
  29. set {_re} to random element of {reward::*}
  30. give {_re} to player
  31. message "&bガチャを回しました。"
  32. execute console command "/clear %player% enchanted_book 0 1"
  33.  
  34. command /gachaitemlist:
  35. permission: admin.admin
  36. trigger:
  37. open chest with 6 rows named "ガチャ景品リスト" to player
  38. set {_slot} to 0
  39. loop {reward::*}:
  40. set slot {_slot} of player's current inventory to loop-value
  41. add 1 to {_slot}
Advertisement
Add Comment
Please, Sign In to add comment