first time using custom enchants with Tuske, can someone help?
[doublepost=1644128753,1644128295][/doublepost]I misspelled chestplate and fixed it but it still doesn't work.
Code:
on skript load:
register a new custom enchantment with id name "Puff melee"
set {_enchantment} to "Puff melee" parsed as custom enchantment
set max level of {_enchantment} to 5
set rarity of {_enchantment} to 1
set accepted items for {_enchantment} to "Chesplates"
set lore name of {_enchantment} to "you become puff from melee"
on skript load:
if player's tool has custom enchantment Puff melee:
set player's max health to 10
make player execute command "/effect give %player% minecraft:strength 1 99999 true"
command /puff:
trigger:
set held item to held item with custom enchantment Puff melee 1