Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. command grass:
  2. trigger:
  3. open chest inventory with 6 rows named "&8&l buy grass" to player
  4. set slot 18 of player's current inventory to red Stained Glass Pane named "&c&lset to 1 "
  5. set slot 19 of player's current inventory to red Stained Glass Pane named "&c&lremove 10 "
  6. set slot 20 of player's current inventory to red Stained Glass Pane named "&c&l remove 1 "
  7. set slot 22 of player's current inventory to grass named "&7Grass Block" with lore "&7buy price:&a$3"
  8. set slot 24 of player's current inventory to lime Stained Glass Pane named "&a&ladd 1"
  9. set slot 25 of player's current inventory to lime Stained Glass Pane named "&a&ladd 10"
  10. set slot 26 of player's current inventory to lime Stained Glass Pane named "&a&lset to 64"
  11. set slot 39 of player's current inventory to lime Stained Glass named "&a&lconfirm"
  12. set slot 41 of player's current inventory to red Stained Glass named "&c&lcancel"
  13. set slot 49 of player's current inventory to 64 lime Stained Glass named "&a&lbuy more"
  14.  
  15.  
  16.  
  17. on inventory click:
  18. event-inventory != player's inventory:
  19. name of player' current inventory = "&8&l buy grass":
  20. event-slot = lime Stained Glass Pane:
  21. index of event-slot = 24:
  22. name of event-slot = "&a&ladd 1":
  23. event-click type = left mouse button:
  24. cancel event
  25. if {BlocksPurchase} is less than or equal to 63:
  26. set {pricegrass} to 3
  27. add 1 to {BlocksPurchase}
  28. set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
  29. else if {BlocksPurchase} = 64:
  30. set slot 24 of player's current inventory to air
  31. else:
  32. set {BlocksPurchase} to 1
  33. set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
  34.  
  35. on inventory click:
  36. event-inventory != player's inventory:
  37. name of player' current inventory = "&8&l buy grass":
  38. event-slot = lime Stained Glass Pane:
  39. index of event-slot = 25:
  40. name of event-slot = "&a&ladd 10":
  41. event-click type = left mouse button:
  42. set slot 22 of player's current inventory to grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
  43. cancel event
  44. if {BlocksPurchase} is less than or equal to 63:
  45. set {pricegrass} to 3
  46. add 10 to {BlocksPurchase}
  47. set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
  48. else if {BlocksPurchase} = 54:
  49. set slot 25 of player's current inventory to air
  50. else:
  51. set {BlocksPurchase} to 1
  52. set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
  53.  
  54.  
  55.  
  56. on inventory click:
  57. event-inventory != player's inventory:
  58. name of player' current inventory = "&8&l buy grass":
  59. event-slot = lime Stained Glass Pane:
  60. index of event-slot = 26:
  61. name of event-slot = "&a&lset to 64":
  62. event-click type = left mouse button:
  63. cancel event
  64. if {BlocksPurchase} is less than or equal to 63:
  65. add 64 to {BlocksPurchase}
  66. set slot 22 of player's current inventory to {BlocksPurchase} of grass named "&7Grass Block" with lore "&7price:%{BlocksPurchase}*3%"
  67. else:
  68. set {BlocksPurchase} to 1
  69. set slot 22 of player's current inventory to 1 of grass named "&7Grass Block"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement