enchantment detect
i'm using this command to detect if the player has the custom enchantment, but it doesn't detect the enchantment level so how can i fix this?
execute if items entity @s weapon.mainhand * [minecraft:enchantments~[{levels:{"inschantment:shockwave":1}}]] positioned ^ ^ ^4.5 run function inschantment:shockwave_effect_1