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

Routine: Play Effect

1cec0ld edited this page Nov 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 Sound of a bow firing.
  • CLICK1 A click sound.
  • CLICK2 An alternate click sound.
  • DOOR_TOGGLE Sound of a door opening/closing.
  • EXTINGUISH Sound of fire being extinguished.
  • RECORD_PLAY A song from a record. Needs the record item ID as additional info
  • GHAST_SHRIEK Sound of ghast shrieking.
  • GHAST_SHOOT Sound of ghast firing.
  • BLAZE_SHOOT Sound of blaze firing.
  • SMOKE A visual smoke effect. Needs direction as additional info. Directions:
    • South East: 0
    • South: 1
    • South West: 2
    • East: 3
    • Up: 4
    • West: 5
    • North East: 6
    • North: 7
    • North West: 8
  • BLOCK_BREAK Sound of a block breaking. Needs block ID as additional info.
  • POTION_BREAK Data determines the splash potion broken: 0-63
  • ENDER_SIGNAL An ender eye signal; a visual effect.
  • ZOMBIE_CHEW_WOODEN_DOOR Sound of zombies chewing on wooden doors.
  • ZOMBIE_CHEW_IRON_DOOR Sound of zombies chewing on iron doors.
  • ZOMBIE_DESTROY_DOOR Sound of zombies destroying a door.
  • STEP_SOUND Sound of a block being stepped on. Needs block ID as additional info.
  • MOBSPAWNER_FLAMES The flames seen on a mobspawner; a visual effect.

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.UP.radius.5' #Effect is visible for 5 blocks away
Clone this wiki locally