Skip to content

Switch: Entity Type

KoryuObihiro edited this page Aug 19, 2011 · 2 revisions

Syntax: switch.$entity.type

Description: Switches based on the specified entity's Element. Cases for this switch include both Element aliases and literals.

Example:

Damage: #Change various mob damage mechanics.
    - 'switch.attacker.type':
        Zombie:
            - 'binom.30': '1'
        Wolf_Tame: '2'
        Wolf: '1' #Catches every other wolf.
        Creeper: '-2' 

See also: Binomial, Addition

Clone this wiki locally