Advertisement
gogre

Untitled

Jun 15th, 2020
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. 'enchantnamelocked':
  2. material: BOOK
  3. slot: NUMBER
  4. priority: 3
  5. update: true
  6. hide_attributes: true
  7. display_name: '&7Enchant_Name &c&l[LOCKED]'
  8. lore:
  9. - '&6&l┃ &7Unlock access to &f&lEnchant_Name I'
  10. - '&6&l┃ &8➥ &7Cost: &a&l$1'
  11. left_click_requirement:
  12. requirements:
  13. has_money:
  14. type: has money
  15. amount: 1
  16. deny_commands:
  17. - '[message] &c&l[!] &cYou do not have enough money!'
  18. - '[sound] BLOCK_NOTE_BLOCK_PLING'
  19. left_click_commands:
  20. - '[console] lp user %player_name% perm set enchants.enchantname.1 true'
  21. - '[takemoney] 1'
  22. - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
  23. - '[refresh]'
  24. right_click_requirement:
  25. requirements:
  26. has_money:
  27. type: has money
  28. amount: 1
  29. deny_commands:
  30. - '[message] &c&l[!] &cYou do not have enough money!'
  31. - '[sound] BLOCK_NOTE_BLOCK_PLING'
  32. right_click_commands:
  33. - '[console] lp user %player_name% perm set enchants.enchantname.1 true'
  34. - '[takemoney] 1'
  35. - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
  36. - '[refresh]'
  37.  
  38. 'enchantname1unlocked':
  39. material: ENCHANTED_BOOK
  40. slot: NUMBER
  41. priority: 1
  42. view_requirement:
  43. requirements:
  44. permission:
  45. type: has permission
  46. permission: enchants.enchantname.1
  47. update: true
  48. hide_attributes: true
  49. display_name: '&eEnchant_Name '
  50. lore:
  51. - '&a&l┃ &7Left Click to Buy &f&lEnchant_Name '
  52. - '&a&l┃ &8➥ &7Cost: &d&l1 EXP Level'
  53. left_click_requirement:
  54. requirements:
  55. check_exp:
  56. type: '>='
  57. input: '%player_total_exp%'
  58. output: 7
  59. deny_commands:
  60. - '[message] &c&l[!] &cYou do not have enough EXP!'
  61. - '[sound] BLOCK_NOTE_BLOCK_PLING'
  62. left_click_commands:
  63. - '[console] give %player_name% ENCHANTED_BOOK 1 enchantname:1'
  64. - '[console] xp give %player_name% -1L'
  65. - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
  66. - '[refresh]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement