Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Routine: Hurt

ricochet1k edited this page Jul 1, 2012 · 4 revisions

Syntax: {entity}effect.hurt

Description: Hurts the specified entity by the damage calculated inside. This routine only uses the natural opposite entity for the source of damage, which only works for the attacker/target pair. If there is no opposite, use the Unknown Hurt routine instead.

Example:

Damage: #Prove with science that Creepers aren't shrubs. They're thornbushes.
    - 'if target.type.Creeper':
        - 'attackereffect.hurt': '1'

See also: Unknown Hurt routine

Clone this wiki locally