scoreboard players set @s vb.entity.trident_in_ground 1

execute store result score #VB vb.dummy2 run random value 1..8

particle minecraft:splash ~ ~0.5 ~ 0.1 0.25 0.1 0 50
particle minecraft:rain ~ ~0.5 ~ 0.1 0.25 0.1 0 50
particle minecraft:fishing ~ ~0.5 ~ 0.1 0.25 0.1 0 20
playsound minecraft:entity.drowned.ambient hostile @a[distance=..16] ~ ~ ~ 1 1

execute if predicate {condition:"minecraft:location_check",predicate:{fluid:{fluids:"minecraft:water"}}} run return run function vb:tick_entity/modified_mob/trident/necromancy_summon {id:"minecraft:drowned"}
execute if biome ~ ~ ~ minecraft:desert run return run function vb:tick_entity/modified_mob/trident/necromancy_summon {id:"minecraft:husk"}
function vb:tick_entity/modified_mob/trident/necromancy_summon {id:"minecraft:zombie"}
