Minecraft Dungeons:Piggy Bank
The Piggy Bank, when it appears, stands still, looking somewhat cautiously for players and mobs. When the player gets close, the Piggy Bank tries to flee. When hit by a player, the Piggy Bank widens his eye, then drops emeralds and is stunned for a short time. If the player successfully kills it, it drops more loot. If left alone on screen for long enough, however, the Piggy Bank eventually disappears along with the chest, without dropping loot.
The drops appear only when the Piggy Bank is attacked and killed by a player.