Self Glow (Power Type)

Makes the entity that has the power glow if certain conditions are met.

Makes the entity that has the power glow if certain conditions are met.

Type ID: apoli:self_glow (alias of apoli:entity_glow with self_glow_target defaulting to true)

The power works on any entity, including non-living ones such as projectiles — grant it to an arrow or a custom projectile and the projectile glows.

You can use a color picker website and divide the RGB values by 255 to get the values (e.g: ranging from 0.0 to 1.0) to be used for the power type.

The conditions specified in the entity_condition and bientity_condition fields are only evaluated on the client-side, therefore, using any condition types that only work on the server-side will not work. Your own apoli:inventory power containers are readable there; apoli:command, apoli:advancement, apoli:scoreboard, apoli:stat and apoli:predicate still are not.

actor is the glowing holder and target is the viewer in bientity_condition — so apoli:actor_condition tests the entity with the power, and apoli:target_condition tests whoever is looking.

A bientity_condition or entity_condition that fails to parse fails the whole power, with a log line naming it. Check the log there first — a glow that ignores its condition is usually a condition that never parsed.

You cannot see your own apoli:self_glow in first person. Minecraft never renders the camera entity, so the glow only shows in third person (F5) or to other players.

Fields

FieldTypeDefaultDescription
entity_conditionEntity Condition TypeoptionalIf specified, only entities that fulfill this condition will see the entity that has the power glow.
bientity_conditionBi-entity Condition TypeoptionalIf specified, only entities that fulfill this bi-entity condition in relation to the entity that has the power will see the entity that has the power glow.
use_teamsBooleantrueDetermines whether glowing entities should use their team’s color with their glow. If set to false, the entity will instead use the red, green and blue fields within this power type.
redFloat1.0Value by which the red component of the glow will be multiplied. Range: 0.0 - 1.0.
greenFloat1.0Value by which the green component of the glow will be multiplied. Range: 0.0 - 1.0.
blueFloat1.0Value by which the blue component of the glow will be multiplied. Range: 0.0 - 1.0.

Examples

{
    "type": "apoli:self_glow",
    "use_teams": false,
    "red": 0.56862745098,
    "green": 0.89019607843,
    "blue": 0.65098039215,
    "condition": {
        "type": "apoli:in_rain"
    }
}

This example will make the entity that has the power glow for everyone if the entity in question is in rain.

{
    "type": "apoli:self_glow",
    "bientity_condition": {
        "type": "apoli:can_see"
    },
    "use_teams": false,
    "red": 1.0,
    "green": 0.0,
    "blue": 0.0
}

This example will make the entity that has the power glow for the entity that can see the said entity.