For Minecraft 1.20+
Datapack Features:
Makes droppers and dispensers able to drop/dispense items into sand or gravel, making the block suspicious with your item as the loot inside!
Running “/scoreboard players set #RequireDropper ItemBurying 0” disables the requirement of dropper/dispenser usage for burying items, allowing the following methods to be possible:
Survival & Multiplayer friendly