execute on origin run advancement grant @s only survivalplus:adventure/food/plantwild
summon item_frame ~ ~ ~ {Facing:1b,Invisible:1b,Tags:[wild_crop,special]}
data modify entity @n[tag=wild_crop] Item set from entity @s Item
playsound minecraft:block.composter.fill block @a ~ ~ ~ .5 1.2
execute store result entity @n[tag=wild_crop] ItemRotation byte 1 run random value 0..7
kill @s