generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Evade Projectiles
Provismet edited this page Jun 26, 2023
·
1 revision
Entities with this power will take no damage from projectiles, projectiles of the PersistentProjectileEntity
class (this includes tridents and arrows) will pass through the entity that has the power, similar to how they would for an Enderman.
Type ID: proviorigins:evade_projectiles
Note |
---|
Projectiles with special effects, such as fireballs from a Blaze that ignite the target, will still trigger their secondary effects. Non-persistent projectiles will still disappear on contact. |
Field | Type | Default | Description |
---|---|---|---|
entity_action |
Entity Action Type | Optional | This action will be execute on the entity that has the power when hit by a projectile. |
bientity_action |
Bientity Action Type | Optional | If present and the projectile has an owner, this will be execute with the owner as the actor and the entity with this power as the target. |
bientity_condition |
Bientity Condition Type | Optional | If present, this condition will determine whether or not the above bientity_action will trigger. As above, the owner of the projectile is the actor, the entity with this power is the target. This does NOT determine whether or not the projectile is evaded. |
projectile_action |
Bientity Action Type | Optional | If present, this bientity action is execute with the projectile itself as the actor and the entity with this power as the target. |
projectile_condition |
Bientity Condition Type | Optional | If present, this condition is used to determine if the above projectile_action should trigger. This does NOT determine whether or not the projectile is evaded. |
{
"type": "proviorigins:evade_projectiles",
"entity_action": {
"type": "origins:heal",
"amount": 2
}
}
This example will protect the player from projectile damage and restore a heart whenever they are hit by one.