7mm

Skript: Draw

7mm
Apr 7th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. every minecraft tick:
  2. loop all players:
  3. if {tad.player.cost.%loop-player%} is not set:
  4. set {tad.player.cost.%loop-player%} to 0
  5.  
  6. command /draw:
  7. trigger:
  8. play sound "block.note.click" at player
  9. open chest with 2 row named "Draw Menu" to player
  10. format slot 0 of player with gold nugget named "&d&l所持コスト: %{tad.player.cost.%player%}%" to be unstealable
  11. format slot 9 of player with barrier named "&7&lメニューを閉じる" to close
  12. format slot 2 of player with wool:0 named "&a&lBuild Tier I" with lore "&d必要コスト: 3" to be unstealable
  13. format slot 3 of player with wool:0 named "&e&lBuild Tier II" with lore "&d必要コスト: 8" to be unstealable
  14. format slot 4 of player with wool:0 named "&c&lBuild Tier III" with lore "&d必要コスト: 17" to be unstealable
  15. format slot 11 of player with spectral arrow named "&a&lBattle Tier I" with lore "&d必要コスト: 3" to be unstealable
  16. format slot 12 of player with spectral arrow named "&e&lBattle Tier II" with lore "&d必要コスト: 8" to be unstealable
  17. format slot 13 of player with spectral arrow named "&c&lBattle Tier III" with lore "&d必要コスト: 17" to be unstealable
  18. format slot 6 of player with blaze powder named "&a&lBuff Tier I" with lore "&d必要コスト: 3" to be unstealable
  19. format slot 7 of player with blaze powder named "&e&lBuff Tier II" with lore "&d必要コスト: 8" to be unstealable
  20. format slot 8 of player with blaze powder named "&c&lBuff Tier III" with lore "&d必要コスト: 17" to be unstealable
  21. format slot 15 of player with nether star named "&b&lSpecial A" with lore "&d必要コスト: 15" to be unstealable
  22. format slot 17 of player with nether star named "&b&lSpecial B" with lore "&d必要コスト: 15" to be unstealable
  23.  
  24. command /card <player> <integer>:
  25. permission: skript.tad
  26. trigger:
  27. if arg 2 is 2:
  28. if {tad.player.cost.%arg 1%} is more than or equal to 3:
  29. set {_random} to random integer between 1 to 17
  30. if {_random} is more than 5:
  31. if {_random} is more than 10:
  32. if {_random} is more than 15:
  33. if {_random} is more than 16:
  34. #17
  35. else
  36. #16
  37. else:
  38. #11-15
  39. else:
  40. #6-10
  41. else:
  42. #1-5
Add Comment
Please, Sign In to add comment