: Breaking the Sponge will trigger the Observer, causing the Dispenser to fire your loot. Method 2: Command Block Setup
How to Make a Lucky Block in Minecraft Using No Mods : 6 Steps
: Place an Observer in the center at ground level with its "face" looking up.
: Place a Dispenser (or a Dropper ) directly underneath the Observer.
: Fill the Dispenser with random items like Diamonds, Iron Swords, or even dangerous items like TNT or Spawn Eggs.