forked from ModDamage/ModDamage
-
Notifications
You must be signed in to change notification settings - Fork 0
Switch: Wearing
KoryuObihiro edited this page Dec 26, 2011
·
1 revision
Syntax: switch.$entity.wearing[only]
Description: A Switch that otherwise functions as the corresponding Conditional.
Example:
Damage: # Do some funky stuff with armor sets.
- 'switch.target.wearing':
- '_SecretSet': '0' # No damage!
- '_SomeHelmet': "message.target.You're only wearing a helmet? o_O"
Aliases:
Armor:
SecretSet:
- 'LEATHER_HELMET*DIAMOND_CHESTPLATE*IRON_LEGGINGS*GOLD_BOOTS'
SomeHelmet:
- 'LEATHER_HELMET'
- 'IRON_HELMET'
- 'GOLD_HELMET'
- 'DIAMOND_HELMET'
SomeHelmetClone: # This just demonstrates comma-delimited lists, otherwise identical to the SomeHelmet alias.
- 'LEATHER_HELMET,IRON_HELMET,GOLD_HELMET,DIAMOND_HELMET'See also: Message, Value Change