When standing on most blocks, including a lit campfire, an armadillo will roll up when near an undead, or a sprinting player.
When standing on either magma, or a cactus, it does not roll up under any circumstance.
Comments 2
Thank you for your report!
However, this issue has been closed as Working as Intended.
If you need help or have a suggestion you might like to follow a link below.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki
I can reproduce this on 1.21.11-pre3. They also wonβt roll up when taking damage from powdered snow, and will actually unroll themselves if they start freezing while already rolled up