## Do all checks for necromancy
# In ground
execute store result score #VB vb.dummy1 run data get entity @s inGround
execute unless score #VB vb.dummy1 matches 1 store result score #VB vb.dummy1 run data get entity @s DealtDamage
# First tick hitting ground
execute if score @s vb.entity.trident_in_ground matches 1 run return run scoreboard players set #VB vb.dummy1 0
# Has enchant
execute unless entity @s[nbt={item:{components:{"minecraft:enchantments":{"vb:necromancy":1}}}}] run return run scoreboard players set #VB vb.dummy1 0

## Do necromancy hit
execute if score #VB vb.dummy1 matches 1 run function vb:tick_entity/modified_mob/trident/necromancy