So here's the simple coding of a function thatll enchant a players axe with fortune 8 if they hold the axe, has mining 25, and has 200k Gems. Im wondering, is there anyway to set it so instead of ONLY having the diamond axe on there, if i can essentially do a list of items? So for example if they're holding an iron axe, itll still do the enchantment? So as long as its an axe lol
'axe_3':
material: hdb-38710
data: 1
slot: 39
display_name: "&d&lFortune Rune III"
lore:
- "&7 Increase the power of your fortune Drops! &a+8 Fortune"
- "&c (!) Requires Woodcutting 25 (!)"
- "&c (!) Costs 200,000 Gems! (!)"
- ""
- "&e Click to buy!"
click_requirement:
minimum_requirements: 3
stop_at_success: true
deny_commands:
- "[message] &7You need to hold onto a Axe, have 200,000 Gems, and be Woodcutting 25"
requirements:
has_tool:
type: has item
material: "DIAMOND_AXE"
deny_commands:
- "[message] &c&l(!) You need to hold the Axe! (!)"
has_money:
type: has money
amount: 200000
deny_commands:
- "[message] &c&l(!) You dont have 200,000 Gems! (!)"
has_level:
type: ">="
input: "%mmocore_profession_woodcutting%"
output: 25
deny_commands:
- "[message] &c&l(!) You dont level Woodcutting 25 (!)"
click_commands:
- "[console] money take %cmi_user_name% 200000"
- "[console] effect %cmi_user_name% Blindness 1 999"
- "[console] enchant %cmi_user_name% fortune 8"
- "[message] &e&l(!) Your Axe has been greatly blessed! (!)"
- "[close]"