## Float
execute if block ~ ~0.4 ~ lava run data merge entity @s {Motion:[0d,0.15d,0d]}
execute if block ~ ~0.4 ~ lava if block ~ ~1.4 ~ lava run data merge entity @s {Motion:[0d,1d,0d]}

## Timer
scoreboard players add @s vb.timer.lava_fishing 1
execute if score @s vb.timer.lava_fishing matches 1 store result score @s vb.entity.lava_fishing_goal run random value 300..400

## Calculate lava fishing
# Calculate how long it's been in the success phase, or until the success phase
scoreboard players operation #VB vb.dummy1 = @s vb.entity.lava_fishing_goal
scoreboard players operation #VB vb.dummy1 -= @s vb.timer.lava_fishing
# If in the success phase
execute if score #VB vb.dummy1 matches ..28 run function vb:tick_entity/modified_mob/fishing_bobber/possible_fish
