This was just a Idea for the game cursed caverns, the glowing gem will either be a currency item or a power up for that level. I think that if you hit the secret block you get this item you can use this item to have a increase damage for that level, or this is a currency from killing monsters.
Credit to the original creator of the game.