execute if block ~ ~-.1 ~ dirt run setblock ~ ~-.1 ~ grass_block
execute as @s[scores={dropmoss=1..,hunger=..19}] anchored eyes if entity @e[type=item,nbt={Item:{id:"minecraft:moss_block",count:1}},distance=..2] run function survivalplus:tools/ability_hats/eatmoss
execute as @s[scores={dropmoss=1..}] run scoreboard players reset @s dropmoss