How to effect entities with a potion effect in a certain radius in MCPE?

So im trying to make a custom potion using an xp bottle, I’m using the command /execute @e[type=xporb] ~ ~ ~ effect @e[r=5] poison 5 2 true, I’m trying to make it where anything in a radius of 5 will be poisoned, so is it possible, or did I make a mistake when writing the command?

  • How do I give myself an item that can only be placed on a block with a certain damage value?
  • How to test for time of day with command block in Minecraft
  • How do I tame and ride the undead horses?
  • How do I test if all minecraft players on a server are in a radius?
  • /testfor command to count players?
  • How do I activate an end portal?
  • How do I target players found by /testfor?
  • How to save a copy of a multiplayer world in the new 0.7+ menus?
  • How can I mine redstone ore?
  • Where can I find Obsidian in the Pocket Edition?
  • Can I disable multiplayer in Minecraft Pocket Edition?
  • how to get and store player name?
  • 2 Solutions collect form web for “How to effect entities with a potion effect in a certain radius in MCPE?”

    The issue is that when you execute a command as an entity you have to include a / before the command which is easy to forget as command blocks don’t require them. The new command should look like this:

    /execute @e[type=xporb] ~ ~ ~ /effect @e[r=5] poison 5 2 true

    Sorry, I failed on the other answer. Here’s the correct way:enter image description here

    We love Playing Games, especially Video Games.