How can I use NBT to detect creatures that are on fire?
My current command is this:
execute at @s at @e[nbt=!{Fire:0},distance=..8] run scoreboard players add @s nearbyflaming 1
The intention of course is to count the nearby flaming creatures.
However, this does not work, and I think I only just figured out why. I think when a creature isn't flaming, it doesn't have a tag of nbt={Fire:0}, it just has no Fire nbt tag at all. But I *do* believe a fire tag exists *in general,* right?
Either way, what's the easiest way to detect if an entity is on fire?