Invisibility (Power Type)
Makes the entity that has the power invisible. Its armor can stay visible or be hidden too.
Type ID: apoli:invisibility
Fields
| Field | Type | Default | Description |
|---|---|---|---|
render_armor | Boolean | false | Whether the entity's armor is shown. |
render_outline | Boolean | false | Whether the glowing outline is shown. |
render_held_items | Boolean | true | Whether items held in either hand are shown. Set it to false to hide them along with the entity. |
bientity_condition | Bi-entity Condition Type | optional | If set, the entity with the power (the target) is only invisible to viewers (the actors, players or mobs) when this condition passes. |
note
render_armor, render_outline and render_held_items only matter while the entity is invisible to the viewer. With a bientity_condition, a viewer who can still see the entity sees its armor, outline and held items as normal.
Hiding held items covers the third-person item layer that everyone else sees. Your own first-person hand keeps its item so you can still tell what you are holding.
Examples
{
"type": "apoli:invisibility",
"render_armor": false,
"condition": {
"type": "apoli:on_fire",
"inverted": true
}
}This makes the entity invisible, armor included, while it isn't on fire.
Fully invisible, with armor, outline and held items all hidden:
{
"type": "apoli:invisibility",
"render_armor": false,
"render_outline": false,
"render_held_items": false
}