Prevent Entity Render (Power Type)

Prevents an entity from being rendered to the entity that has the power, including their armor, shadow, and hitboxes.

Prevents an entity from being rendered to the entity that has the power, including their armor, shadow, and hitboxes.

Type ID: apoli:prevent_entity_render

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.

Fields

FieldTypeDefaultDescription
entity_conditionEntity Condition TypeoptionalIf specified, only entities which fulfills this condition will be affected.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the power will only be active if this condition is fulfilled by either or both the ‘actor’ (the player that has the power) and ‘target’ (the entity that will not render) entities.

The holder is not exempt: if the conditions match the holder, they disappear from their own third-person view too. Scope with a bientity_condition such as apoli:target_condition if you only mean other entities.

Examples

{
    "type": "apoli:prevent_entity_render",
    "entity_condition": {
		"type": "apoli:entity_type",
		"entity_type": "minecraft:creeper"
	},
	"condition": {
		"type": "apoli:daytime"
	}
}

This example will make creepers invisible for the player that has the power during the day.

{
    "type": "apoli:prevent_entity_render",
    "bientity_condition": {
        "type": "apoli:and",
        "conditions": [
            {
                "type": "apoli:distance",
                "comparison": ">",
                "compare_to": 8
            },
            {
                "type": "apoli:target_condition",
                "condition": {
                    "type": "apoli:entity_group",
                    "group": "aquatic"
                }
            }
        ]
    },
    "condition": {
        "type": "apoli:submerged_in",
        "fluid": "minecraft:water"
    }
}

This example will prevent mobs that are from the ‘aquatic’ entity group from rendering for the entity that has the power only if the entity that has the power is submerged in water and those mobs are 9 or more blocks away.