hey, new to coding
trying to make an enchantment that has a chance of striking lightning on a hit mob, before figuring out how to add the chance element I wanted to just create the enchant and see if I could get it to work.
when I type /enchant @p my enchant doesn't pop up, here's my simple script:
type: enchantment
id: thunder
slots:
- mainhand
rarity: common
category: weapon
full_name: Thunder <context.level>
min_level: 1
max_level: 1
min_cost: 1
max_cost: 5 <context.level.mul[1.5].round>
is_discoverable: false
treasure_only: true
after attack:
- spawn lightning_bolt <context.victim>```