Skip to content

Routine: Play Effect

1cec0ld edited this page Aug 10, 2012 · 9 revisions

Makes the specified visual or audio effect occur on the entity. Additional parameters determine different sub-effects or distances.

Syntax

- '{entity}.playeffect.{effectType}.[data].[radius.{radius}]'

#Viable Effect types are: BOW_FIRE CLICK1 CLICK2 DOOR_TOGGLE EXTINGUISH RECORD_PLAY GHAST_SHRIEK GHAST_SHOOT BLAZE_SHOOT SMOKE BLOCK_BREAK POTION_BREAK ENDER_SIGNAL MOBSPAWNER_FLAMES

Examples

Damage: #A Visual Reminder When You Hit A Boss Mob. 
    - 'if target.istagged.Boss':
        - 'target.playeffect.MOBSPAWNER_FLAMES'
Heal:
    - 'if entity.istagged.Boss':
        - 'entity.playeffect.SMOKE.radius.5' #Effect is visible for 5 blocks away

Clone this wiki locally