Minecraft – How to start an illager raid via commands

minecraft-bedrock-editionminecraft-commands

How can I start an illager raid via commands? I've looked into mob events but they don't seem to trigger anything.

I'd prefer a solution where it not be required that the player is in a village for it to start.

Best Answer

Unfortunately, you have to be in a village to participate in a raid. Fortunately though, you can create your own village by only having 1 villager next to or near it's linked bed. You can check to see if it is linked to a bed by checking to see if it sleeps in said bed at night. Once you do this, simply use this command and the raid will start.

/effect @s bad_omen

Just note that if the villager is killed at any point between the start and end of the raid, the raid will be counted as a defeat.