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"}}}]}]
22641
I am in 1.13 Pre-Release 7 trying to make a one command creation and I need an item with a specific name. The command I use is /give @p diamond_sword{display:{Name:"Sword of Power"}} and it gives my a diamond sword, but it doesn't have the name.   This is me running the command.   This is the command not working.
26001
In Minecraft 1.16.1, I’m trying to make a system thats detects when one of several fake players doesnt have a specific score. Here is my first attempt: execute unless score sticks_have page-2 matches 2.. unless score plank_have page-2 matches 1.. run ...  After trying this, I realized that all scores need to be in the correct range before it runs the command! But I want it to run the command when any of the scores are in range. I thought of using the following command, but it doesn’t detect fake players: execute unless entity @a[scores={sticks_have=2..,plank_have=1..}] run...  I know I can use multiple command blocks, but I would rather not, just do I can conserve space. What can I do?
32396
How do you clear 1 item from the inventory that has a custom name? What I'm trying to do is make a torch that when you hold it, it gives you Night Vision effect but after like 400 ticks or so I want the torch to run out of fuel and clear 1 torch away from the inventory, I have the potion effects (giving and taking away) working and the testfor command but how do I clear the item? this is my code I'm trying to use /clear @a torch 1 1 {display:{Name:"Special Torch"}}
20710
I am working on a game that uses commands in such a way that players disconnecting then reconnecting could break the commands. I was wondering if there is a way to detect when players join the game in 1.13.2 and run a command to give them an item. When I researched this, I found solutions for older versions using /testfor or stat.leaveGame, but those seem to be outdated in 1.13. If someone could show me the commands to use as well as the layout for command blocks/redstone that would be great. It can be for the second time they join only, or for all times that they do. Thanks
65923
I want to detect when someone is building a lever, then replace it with another lever that has the canplaceon tag so it can be placed on a redstone_lamp  How can I clear the crafting item and replace it with one that has a canplaceon tag?
105677
I am making a Sell Shop, but I need to replace some things using /setblock.  For one of the replacements, I am using the command:  /setblock 579 62 1053 minecraft:command_block 0 replace {Command:"testfor @p {Inventory:[{id:"minecraft:log",Count:32b}]}",TrackOutput:0}  But it won't work! When I try it using a Command Block, I get this message:     [19:14:38]   Data tag parsing failed: Unexpected token 'm' at: minecraft:log",Count:32b}]}",TrackOutput:0   Is there any way I can fix this?
45256
Is there a way to search through world data to find instances of a given type of item (e.g., gold horse armor) and/or to find an item with a particular name?   My goal is to find the item's location within the in-game world, ideally with an X/Y/Z coordinate. My specific application is locating stolen items, but I can imagine other uses for such a search, for example, locating mob spawners.  Hopefully there's already a utility or technique available to help with this. But if not, some documentation on the structure of world data might do the trick, as I'm a programmer and could probably write the search myself.
10289
I found that every character has a "Personal Item" in his inventory after you start the game. My question is: What is the purpose of it? I mean yeah you could sell it for 100$ but that really is absolutely nothing. It also doesn't have any stats so what can I use it for?
121814
when I try to use type=ArmorStand in a command in minecraft 16w38a it says Entity Type 'minecraft:armorstand is invalid' is this a known bug or just me?  example command i'm using: /kill @e[type=ArmorStand] or /entitydata @e[type=ArmorStand] {}
66520
I am on a multiplayer Minecraft realm in 1.16 and I was wondering if there was any way to set a chest's Items to a player's entire Inventory including the offhand and armor slots. Using data modify &lt;chest coordinates&gt; Items set from entity &lt;player&gt; Inventory, I was only able to copy over the hotbar and the top two rows of a player's inventory. I honestly don't care if it takes 50 command blocks, any response is gladly appreciated.
35110
Can you use the /testfor command in minecraft 1.8 to find out if a player has died ?  I need it for my map, where 2 players (Only) are pitted against eachother. I want it so that when one of them dies, it will detect the death and declare the victor.
29856
This is my current command: execute as @a[distance=..100] run execute at @s if block ~ ~-1 ~ minecraft:quartz_block run /clear @s &lt;...&gt; I would like to clear the executing entity's inventory of all items without the NBT tag {PitAllow:1b}. I am in version 1.15.2 and if any plugins are required (Bukkit or Spigot) I'd be fine with installing those.
8486
I have a small question: does Minecraft 1.14.4 allow NBT tags in crafting recipes? Because I'm making a map in 1.14.3 and some part of the map need custom NBT tags crafting and I need to use custom crafting chest to make it
37851
I'm wondering about whether it is possible to change part of an NBT or add NBT to an item that a player is holding. My goal is to make custom enchants. For example when a player uses an item to enchant a sword they get the score &quot;EnchantMight&quot; 5, which would cause the next weapon they hold to get &quot;Might V&quot;. This, in reality, would just be +5 additive damage in the NBT. I know /replaceitem would be an option, but that only works if the new item is predetermined. I hoped /data modify entity @p {SelectedItem:[{AttributeModifiers:[{AttributeName:&quot;generic.attack_damage&quot;,Amount:5,Operation:0,UUID:[I;-120919,1237,151734,-2474],Name:&quot;generic.attack_damage&quot;}]}]} insert/append/merge  would work, but obviously it didn't. If anyone even just has an idea I can try out, it'd be of help. If you give a datapack related answer, please explain clearly as I don't know a lot about it.
7576
I have a lookup to a custom object called Project on my Opportunity object. I am trying to write a trigger that updates an Active, Awarded, and Title on the Project object whenever the Active, Awarded, or Title field is updated on Opportunity based some on more logic that isn't in my code below. This is my first trigger and needing a little help due to a NullPointerException where I try to set Project__r.Active__c = true. Any thoughts?      trigger ProjectFieldsTrigger on Opportunity (before insert, before update) {       //List&lt;Opportunity&gt; opp = [SELECT Name, Active__c, Funded__c, Title__c, Project__r.Name, Project__r.Active__c, Project__r.Awarded__c      //  FROM Opportunity WHERE Id IN :Trigger.New];      for(Opportunity o: Trigger.New){          if(o.Project__c != null){              if(o.Active__c == 'Y'){                 o.Project__r.Active__c = true;             }      }  }
12157
Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.  /testfor @p[r=10] {SelectedItem:{id:"minecraft:feather",tag:{display:{Name:"Roc's Feather",Lore:[Jump higher using this feather.]}}}}`   Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.  I tried remaking my feather from scratch with this command here:  /give @p minecraft:feather{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}} 1   But the execute command I placed did not detect this type of uniqueness.  /execute if entity @p[distance=10,nbt={SelectedItem:{id:"minecraft:feather",Count:1b,tag:{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}}}}] run effect give @s minecraft:jump_boost 1 3 true   Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.
1213
I want to kill a specific item using a command block. If this is possible, how do I do this. Can you kill 2 specific items using a single command block. If yes, how?  I tried killing a gold ingot but it didn't work. Here is the screenshot.