r/MinecraftHelp • • 2d ago

Waiting for OP Command block not working even though its being powered [java]

Post image

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

5 comments sorted by

•

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/TheBestBlueButterfly 1d ago

I know that it’s getting powered because the command block in the back left does work. I also know that command blocks are enabled because all the other command blocks I’m using do work :/

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:

  • Look at the block's Previous Output box (open the command block, it's at the bottom). It tells you what actually happened, like "No blocks were filled" or "That position is not loaded".
  • If it's a chain command block, it has to be set to Always Active (or get its own redstone) and its arrow has to point away from the block before it. A Conditional chain block only runs if the previous one succeeded.
  • If the barriers are far away, the area has to be loaded, otherwise fill does nothing.