Origins: Powerful Powers
» Entity actions » Disguise

Disguise

origins-powerful-powers:disguiseentity action

Makes other players see the entity as another entity type: a player who looks like a zombie, a cow that looks like a creeper. It's visual only. The entity keeps its own hitbox, health, AI and abilities, and mobs treat it as its real type.

FieldTypeDefaultDescription
entity_typeIdentifierrequiredWhat it looks like, like minecraft:zombie. Any type except minecraft:player. It uses the type's default look.
durationInteger0Ticks until the disguise ends. 0 or less: until undisguise or the entity is gone.
viewer_conditionBi-entity conditionnoneWho sees the disguise. The actor is the viewing player and the target is the disguised entity. Players who fail it see the real entity. Left out: everyone.
recheckBooleantruetrue: viewer_condition is checked again every half second, and players whose result changes see the entity swap. false: each player's first result is kept.
  • What shows through: only the real entity's held items and armor, when the disguise type can show equipment (zombies, skeletons, armor stands, …). Name tags, poses, fire, glowing and invisibility are hidden. An invisible player in a disguise is visible as the disguise.
  • The disguised player sees their own body in third person. Only other players see the disguise.
  • The client aims using the disguise's size, so a small disguise on a big entity can be hard to hit, and the other way round.
  • Disguising an entity that's already disguised replaces the disguise. It ends when the entity unloads, a player logs out, or the server stops.

Example: "Skin of the dead". Your primary key disguises you as a zombie for 30 seconds, for players who don't have your origin.

json
{
  "type": "origins:active_self",
  "key": {
    "key": "key.origins.primary_active"
  },
  "cooldown": 1200,
  "entity_action": {
    "type": "origins-powerful-powers:disguise",
    "entity_type": "minecraft:zombie",
    "duration": 600,
    "viewer_condition": {
      "type": "origins:actor_condition",
      "condition": {
        "type": "origins:origin",
        "origin": "mypack:ghoul",
        "inverted": true
      }
    }
  }
}