Item Effects Triggers
tetra:apply_hit_effects
Triggers when tetra attempts to apply hit effects after the player has attacked with a modular item. May be the directly attacked entity or an entity hit by a projectile or a sweeping attack.
This is a unreliable for bow/crossbow projectiles.
Context data
- Entity:
attacker
: The attacking entity, wields the item with the effect. - Entity:
target
: The entity being attacked (directly or indirectly).
tetra:mine_block
Triggers once when the player attempts to mine a block with a modular item.
Context data
- Entity:
miner
: The mining entity, wields the item with the effect. - Vector:
target
: The position of the block being mined.
tetra:break_block
Triggers for every block broken after a player has mined a block with a modular item. As opposed to the tetra:mine_block
which only triggers once, with a reference to the directly targetted block.
Context data
- Entity:
breaker
: The entity that broke the block, wields the item with the effect. - Vector:
target
: The position of the block being mined.