I'm trying to make a door that searches a player's inventory for a golden nugget named "Golden Leaf". I have all of the redstone working, but for some reason the command block that tests for the item stays active, so I have a different command block hooked up to replace it and deactivate it. However, it wont work. This is the command I'm currently using:  /setblock -9456 83 10214 command_block 0 replace {Command:"/testfor @p {Inventory:[{id:"minecraft:gold_nugget",tag:{display:{Name:"Golden Leaf"}}}]}"}  And it keeps saying "Invalid character at "m" in minecraft. I changed it and took out the 'minecraft' part but it still won't work. What is wrong?
3479
I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2]  ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}}   If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined.  With the tellraw command, the error message is the following:  Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin  of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"   If anyone knows how to fix this, please let me know.
60684
I'm working on a custom crafting system and I'm trying to use donkeys/mules as a way for players to put in crafting items. The mule's chest is used for inserting items and having an item output. This is how I spawn one such mule:  /summon minecraft:mule ~ ~ ~ {Tame:1b,Silent:1b,NoAI:1b,ChestedHorse:1b,ActiveEffects:[{Id:14b,Amplifier:1b,Duration:1000000,ShowParticles:0b}]}   Using this, and invisible mule, and players can access the chest, where the custom crafting would take place. The only problem with this is that the player is able to ride the mule, so I add a passenger to prevent this.  /summon minecraft:mule ~ ~ ~ {Tame:1b,Silent:1b,NoAI:1b,ChestedHorse:1b,Passengers:[{id:"minecraft:armor_stand",Marker:1b,Invisible:1b}],ActiveEffects:[{Id:14b,Amplifier:1b,Duration:1000000,ShowParticles:0b}]}   However, doing so makes the player unable to access the chest. Is there any way to make a mule unrideable, but also making that mule's chest accessable to players?
25171
I'm messing around with command blocks, and I'm wanting to try and make an XP vending machine. My idea is if you click a button with a Diamond in your hand, 1 diamond gets removed and you get x amount of XP.  Is this possible using command blocks? If so, what commands would I need to look at? I already know /xp myAmount @p, it's just the checking/removing of items I can't seem to get.
22109
So I am trying to do some stuff with command blocks in 1.10.2 . But I have come to a problem. To make things more compact I have placed command blocks like a tower. The bottom command block checks for a pushed button in a location. The top ones are suppose to do what I need but they don't. Any ideas? By the way the testforblock command is correct.
15522
I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.
40963
I'm trying to make a mini game but I want it so that when you press a button over a command block it will say "BOB welcome", so 'bob' instead of the @a or @p sign and then followed by the message. All I know is that I need to use /tellraw.
62404
What I have now is:  /testfor @a {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"diamond_pickaxe"}]}   How can I use the /testfor command to test a specific slot for a specific item that is enchanted?
9484
I found the /testfor command today in Minecraft, but when I use it in a command block it says     Usage: /testfor &lt;player>   and when I do that it then says     /testfor must be used by command blocks with an analog output.   What does that mean and how can I use the command?
64744
I want to test for a dropped Spruce Log, for example. So what I have is:  execute at @e[type=minecraft:item,name="spruce_log"] run summon minecraft:pig ~ ~ ~  I also tried:  execute at @e[type=minecraft:item,nbt={id:"spruce_log"}] run summon minecraft:pig ~ ~ ~  The pig summoning is just to see if it works. Which it doesn't. The Command Block doesn't give me any errors either. I just don't know how to test for the Spruce Log item, or any item in specific. I'm using Minecraft 1.13.1.
96893
My 1.12 solution can be found . When trying to update command blocks to 1.13, I have the following:  scoreboard objectives add invert dummy   (run at start) then:  scoreboard players set FakePlayer invert 1   (impulse unconditional repeat) chained into:  execute at @e[tag=summoned] run scoreboard players reset FakePlayer invert   (chain unconditional repeat) chained into:  execute if score FakePlayer invert = 1 invert run say "All summoned animals are dead!"   This should reset FakePlayers score continuously until all entities with tag "summoned" are dead, then it should run the final condition. This does not happen, and I can't see why.
2859
I have heard it was possible to change the names and lores of Minecraft items WITHOUT the use of third-party programs like MCEdit. Given the things that my friends have told me, and from the information gathered online, my guess is that, since Minecraft has started using JavaScript, /give @p 35 1 14 {name:"Red Wool",lore:"bob"}. Whenever I run this command block, all I get is a piece of Red Wool with no Lore, nor a name. I also get no errors in this process.
87292
This is the command I entered in the command block: testfor @p {Inventory:[{id:minecraft:diamond,Count:10}]}  But it doesn't seem to work. What am I doing wrong?
120537
I have a Minecraft 1.8.1 vanilla server and would like to reward certain users. I would like to /give some users a 99999/99999 durability renamed Diamond Pickaxe (with all enchantments on it). How do I use commands to change/repair the durability of items? If possible, using only one command and use /give.
92426
When I put   /summon Item ~ ~2 ~ {Item:{id:"minecraft:diamond",Count:1b,Motion:[0.0,0.8,0.0]}}    in a command block, it summons the diamond with Count:1b but it doesn't follow the Motion Tag. Does anyone know how to get the Motion Tag working?
43340
I'm working on a map in Bedrock Edition, and I need to have a command block at the end that says "Congratulations [player], you win!" Because it's a map, I cant just have it say a specific player's name, and I've seen maps that do exactly what I want mine to do. How do I format the command to allow this?
105054
So, right now I'm using this:  /give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:[minecraft:stone]}   But I need one that also has the Name value. Anyone know this one?
107528
I need help for detecting a number of specific items in my inventory whether it's stack or not.  This is the command I used:  execute if entity @a[nbt={Inventory:[{id:"minecraft:apple",Count:64b}]}] run command  But the command only detects a stack of items.