I'm trying to create a command block based kit pvp type thing in my friends' realm so that we can do kit pvp and select classes by just selecting a class. I'm trying to use chain command blocks to link all the commands that are needed for one class to give someone all of the items. When I try and run chain command blocks, the first impulse command block works, the chain command block that it's running into works, but the chain command blocks after that don't work at all. I don't know if I'm using it wrong but this is the command chain I have setup
execute if entity @a[scores={footsoldier=1}] run give @a[scores={footsoldier=1}] minecraft:iron_helmet{Unbreakable:1}
that command works and runs into
execute if entity @a[scores={footsoldier=1}, nbt={Inventory:[{id:"minecraft:iron_helmet"}]}] run give @a[scores={footsoldier=1}] minecraft:iron_chestplate{Unbreakable:1}
that command works and is supposed to run into
execute if entity @a[scores={footsoldier=1}, nbt={Inventory:[{id:"minecraft:iron_helmet"},{id:"minecraft:iron_chestplate"}]}] run give @a[scores={footsoldier=1}] minecraft:chainmail_leggings{Unbreakable:1}
but this command doesn't run.
Again, I don't know if I'm using the command blocks wrong but I've used chain command blocks in 1.12 and this should work.
Comments 7
Have you tried asking other people to double/triple check the commands themselves aren't the issue? Also I keep seeing a \ in your entity selection arguments (... give @a[scores=\/{footsoldier=1}
] ...), is that / in the command blocks as well?
Make sure that the arrows are all pointing the same direction and the maxCommandChainLength gamerule >= 3.
I don't think that the commands are the problem because I have the same problem, and if I load my back up on single player (same commands) all the commands work.
Thank you for your report!
Minecraft Realms for Java Edition has received a lot of updates and fixes over the last two years, so this issue has probably already been fixed in the meantime (e.g. because it was a temporary outage or an issue with the base game).
Since this bug report has not been updated since at least two years, please let us know if this is still an issue in current versions of Minecraft and update the bug report if applicable. If this is no longer an issue, please let us know as well. Thanks!
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki – 📖 FAQs
I believe you have done your commands correctly (the \ after scores= may be the problem). I am working on a map that has a lot of command blocks, and it completely quit working except the commands that are activated by red stone. If you want exact details read on. I joined my realm and was surprised to see that I was in the same place that I disconnected from (I have commands that teleport players who left and then rejoined to spawn). I went to check on the commands that teleport the players, there seemed to be nothing wrong with them I tried turning them off then on (that fixes most problems) it worked. I went to do whatever I was doing, and then I noticed that nothing else was working right. so I thought that I would need to turn off and on all of the commands (a pain). so I naturally asked one of the other people who was working on the map to do that. It seamed to fix the problem until he was about half way through, they started to quit again. I had a back up that luckily wasn’t very old and 1.14.1 had just been released, I thought ok it must have been corrupted when it updated. so I up loaded the back up to my realm. One day later same problem. Until this is fixed I am only working on single player. Thank you for reading this.