Execute if items entity not working?
execute as @a[tag=poppyheal] if score #timer 2min matches 10 run item replace entity @s hotbar.8 with minecraft:poppy[minecraft:custom_data={poppyheal:true}] execute as @a[tag=poppyheal] if items entity @s weapon.mainhand minecraft:poppy[custom_data={poppyheal:true}] if score #timer 5sec matches 10 run effect give @a[distance=..8] minecraft:regeneration 1 5 true