mojira.dev
MC-164616

Un-charged creepers do not have a "powered" nbt tag

Creepers that are not charged do not have the "powered:0b" nbt data and thus cannot be manipulated or detected by commands.  The "powered" tag doesn't appear in the entity data and testing specifically for that tag fails. 

Attachments

Comments 4

Not really a bug, there's no reason to store it if it's false. You can just do

nbt=!{powered:1b}

Can confirm that this is an issue in 20w51a. Here are some steps to reproduce this problem.

Steps to Reproduce:

  • Run the following commands:

/summon minecraft:creeper ~ ~ ~
/data get entity @e[type=minecraft:creeper,sort=nearest,limit=1] powered

→ ❌  Notice how the creeper does not have a "powered" NBT tag.

Can confirm in 21w06a.

Resolving as a duplicate of MC-87252.

Silver65536

(Unassigned)

Confirmed

(Unassigned)

19w42a, 1.16.4, 20w51a, 21w06a

Retrieved