1. Wiki
  2. /Entities
  3. /minecraft:raid_trigger

minecraft:raid_trigger

Don't want to write this by hand? GodCraft sets minecraft:raid_trigger for you with a switch.Get GodCraft

Overview

minecraft:raid_trigger is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Tries to start a raid at the entity's position, as happens when a player with Bad Omen enters a village.

Fields

FieldTypeDefaultDescription
triggered_eventStringnoneEvent to run when a raid starts in the village.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:raid_trigger": {
    "triggered_event": ""
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more