Advertisement
BrainRTP

Example menu configuration (shop menu)

May 2nd, 2024
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. include required(file("./plugins/AbstractMenus/menus/templates.conf"))
  2.  
  3. title: "&8Shop"
  4. size: 6
  5. activators {
  6. command: "aunt-pitunya-shop"
  7. }
  8.  
  9. items: [
  10. ${OAK_SAPLING_NO_MONEY},
  11. ${OAK_SAPLING},
  12.  
  13. ${balanceIcon1},
  14. ${backButton1},
  15. ${closeButton},
  16. ${backButton2},
  17. ]
  18.  
  19. "OAK_SAPLING" = {
  20. cost: 3
  21. rules {
  22. money: ${OAK_SAPLING.cost}
  23. }
  24. slot: "1, 2"
  25. material: OAK_SAPLING
  26. name: "&foak sapling"
  27. lore: [
  28. "&aCost: &e"${OAK_SAPLING.cost}
  29. ""
  30. ${clickToBuy}
  31. ]
  32. click {
  33. rules {
  34. money: ${OAK_SAPLING.cost}
  35. }
  36. denyActions: ${balanceNotEnough}
  37. actions: {
  38. itemAdd: {
  39. material: OAK_SAPLING
  40. }
  41. takeMoney: ${OAK_SAPLING.cost}
  42. refreshMenu: true
  43. sound: ${successSound}
  44. }
  45. }
  46. }
  47. "OAK_SAPLING_NO_MONEY" = {
  48. slot: ${OAK_SAPLING.slot}
  49. material: GRAY_DYE
  50. name: ${OAK_SAPLING.name}
  51. lore: [
  52. "&cNot enough money!"
  53. ""
  54. "&aCost: &e"${OAK_SAPLING.cost}
  55. ]
  56. click: ${balanceNotEnough}
  57. }
  58.  
  59.  
  60. balanceIcon1 = ${balanceIcon} {
  61. slot: "5,5"
  62. }
  63. backButton1 = ${backButton} {
  64. slot: "4,"${size}
  65. click {openMenu: "shop"}
  66. }
  67. backButton2 = ${backButton} {
  68. slot: "6,"${size}
  69. click {openMenu: "shop"}
  70. }
  71. closeButton = ${closeButton} {slot: "5,"${size}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement