#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

execute if entity @s[nbt={OnGround:1b}] at @s run tp @s ~ ~-1.5 ~
execute if entity @s[nbt={OnGround:1b}] run data merge entity @s {NoAI:1}
execute if entity @s[nbt={OnGround:0b}] at @s if block ~ ~1 ~ water run data merge entity @s {Motion:[0.0,-1.0,0.0]}
tag @s[nbt={OnGround:1b}] remove pumpkin_dropped