How do you use /execute if to detect a renamed item in a players inventory?

by Samuel Joseph   Last Updated May 23, 2020 01:14 AM

I have been trying to figure out how to detect renamed items in someone's inventory. I've been able to use /execute if to detect an item, but I can't figure out how to detect a renamed item. This is what I tried: execute if entity @a[name=(username),nbt={Inventory:[{id:"minecraft:music_disc_far",tag:{display:{Name:"another username"}}}]}]



Related Questions


How do I prevent NBTExplorer from crashing?

Updated May 20, 2020 19:14 PM




Starting a Minecraft Server using Portmap.io

Updated May 22, 2020 03:14 AM