mojira.dev
MC-129377

Nbt selector not working

Nbt selector is broken. Including data get and @e[nbt={}].

Linked issues

Comments 3

I cannot seem to reproduce. I tried

/say @e[nbt={Size:3}]

in a flat world full of slimes, everything worked as expected

I believe this is invalid, since the command would be /data get entity @e[nbt={},limit=1], and given that the nbt provided is valid, the command should work w/o fail. Without more clarity or context, this cannot be reproduced and the actual bug is unclear (assuming it is a bug).

I've been experiencing the same thing
Stuff like this (execute as @e[tag=!nostart,type=item,nbt={OnGround:1b,Item:{id:"minecraft:diamond_hoe",tag:{display:{Name:"{\"text\":\"Knock Rune\",\"color\":\"gold\",\"italic\":\"false\"}"}}}}] at @s run kill @s)
and this (execute as @e[type=xp_bottle] at @s if block ~ ~-1 ~ dispenser{Items:[{Slot:0b,id:"minecraft:prismarine",Count:1b},{Slot:1b,id:"minecraft:ender_eye",Count:1b},{Slot:2b,id:"minecraft:prismarine",Count:1b},{Slot:3b,id:"minecraft:gold_ingot",Count:1b},{Slot:4b,id:"minecraft:prismarine",Count:1b,},{Slot:5b,id:"minecraft:gold_ingot",Count:1b},{Slot:6b,id:"minecraft:gold_ingot",Count:1b},{Slot:7b,id:"minecraft:gold_ingot",Count:1b},{Slot:8b,id:"minecraft:gold_ingot",Count:1b}]} run summon leash_knot ~ ~-1 ~ {CustomName:"\"customcraftinglk\""}) don't work. They work in the last snapshot though

Red Cocoon

(Unassigned)

Unconfirmed

Minecraft 18w19b

Retrieved