I'm on Minecraft bedrock and my execute command isn't working. I didn't turn on experiments or anything like that, so why isn't it working? This is my execute command.

/execute @e[name="iron bars"] ~~~ effect @p[r=20] health_boost 999999 0 true

  • your tildes (~) seem to be in the wrong place. each of them need to be spaced out, e.g. "~ ~ ~" vs "~~~". Dec 26, 2022 at 18:59
  • @EarthToAccess I did that, but it still didn't work.
    – Mayo
    Jan 7 at 4:09

1 Answer 1


Mojang changed Bedrock's execute command to be more like Java's execute command. Try changing your command to /execute as @e[name="iron bars"] at @s run effect @p[r=20] health_boost 999999 0 true

  • Ty so much! I really needed this for my realm!
    – Mayo
    Mar 24 at 1:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .