r/MinecraftHelp • u/TheBestBlueButterfly • 2d ago
Waiting for OP Command block not working even though its being powered [java]
The command block in red is meant to fill a 2x3 square of barrier blocks with air when powered. However, when going to where the barriers should have been filled, they are still there.
The command does work when not in this command block sequence, so it's not a coordinate issue. It looks like the command is being executed just not working for whatever reason.
this is also in 26.1 btw
1
Upvotes
•
u/MinecraftHelpModTeam 🤖 Mod Bot 🤖 2d ago
OP, remember to award points to helpers, and mark the post solved, by replying !helped to the comment/comments that helped, when your issue is fixed or your question answered.
Helpers, remember that all top-level comments* must be a genuine, good faith attempt to help OP. Comments breaking this rule will be removed, and bans issued.
* A top-level comment is any comment that is a reply to the post, not another ^comment.
Links:
Moderator applications open || How to mark solved || How to delete your post || FAQ || Rules
1
u/Specialist-Pen9823 1d ago
I am not sure. But are they not a block to low. And double check if the gamerule is set to allow commandblocks. In multiplayer worlds you need to be an op
1
u/BananeHD Journeyman IV 1d ago
Is this a local world or a server?
As far as I know, you need to enable command blocks in the server.properties file.
1
u/FreaksMC Apprentice I 1d ago
If the command uses ~ coordinates, that's probably it. Inside a command block, ~ means "relative to the command block", not to you. When you type the same command in chat, ~ is relative to where you're standing, so it works there and then misses in the block. Use absolute coordinates (plain numbers, press F3 to see them) and it should hit the barriers.
A few other things to check if that isn't it: