Prevent Entity Render
Prevents an entity from being rendered to the entity that has the power, including their armor, shadow, and hitboxes.
Type ID: origins:prevent_entity_render
Fields
| Field | Type | Default | Description |
|---|---|---|---|
entity_condition |
Entity Condition Type | optional | If specified, only entities which fulfills this condition will be affected. |
bientity_condition |
Bi-entity Condition Type | optional | If 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. |
Examples
{
"type": "origins:prevent_entity_render",
"entity_condition": {
"type": "origins:entity_type",
"entity_type": "minecraft:creeper"
},
"condition": {
"type": "origins:daytime"
}
}
This example will make creepers invisible for the player that has the power during the day.
{
"type": "origins:prevent_entity_render",
"bientity_condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:distance",
"comparison": ">",
"compare_to": 8
},
{
"type": "origins:target_condition",
"condition": {
"type": "origins:entity_group",
"group": "aquatic"
}
}
]
},
"condition": {
"type": "origins: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.