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

minecraft:ravager_blocked

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

Overview

minecraft:ravager_blocked is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Decides what a ravager does when a shield blocks its melee attack.

Fields

FieldTypeDefaultDescription
knockback_strengthDecimal"3.0"How hard the blocking entity is pushed back.
reaction_choicesList"[ ]"Possible reactions with weights; heavier weights are picked more often.

Example

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

BP/entities/<name>.json
{
  "minecraft:ravager_blocked": {
    "knockback_strength": "3.0",
    "reaction_choices": "[ ]"
  }
}

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