r/MinecraftCommands • u/Swiggliswooogle • 7h ago
Help | Java 26.3 Problems with Inventory NBT
Having an issue detecting a crossbow in a player inventory thats loaded with an arrow.
From what i can tell it has something to do with the arrow loaded in the crossbow. I tried to use MCstacker and this still doesn't work.
/execute if entity @a[nbt={Inventory:[{id:"minecraft:crossbow",components:{"minecraft:charged_projectiles":[{id:"minecraft:arrow",count:1,components:{"minecraft:intangible_projectile":{}}}]}}]}]