How to make a potion with the nausea and hunger effect, and be named “Rum” using Command block in MCPE [duplicate]
MCPE does not support NBT in commands, so everything in the curly brackets is invalid syntax in PE.
An alternative solution that's commonly used, detecting the use of an item and then applying effects, also doesn't work in PE, because MCPE has no /scoreboard
command.
You'll have to find a different way to trigger it, for example standing on a certain block type (using execute detect
, archive).
Maybe you could also retexture a throwable potion and then detect the flying potion with a command and apply the effect to the closest player.