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

Conditional: Wielding

ricochet1k edited this page Jul 1, 2012 · 1 revision

Syntax: {entity}.[is]wielding.{item}

Description: Is true if the specified entity is a player and the item in hand matches the alias provided.

Example:

Damage: #Grant axe-users MORE POWER, make Diamond blocks an interesting defensive tactic.
    - 'if attacker.wielding._axe': '+2'
    - 'if target.wielding.DIAMOND_BLOCK': '2'
    - 'if target.wielding.DIAMOND_SWORD,DIAMOND_HOE,DIAMOND_SPADE': '-1'
Aliases:
    Item:
        axe:
            - 'WOOD_AXE'
            - 'STONE_AXE'
            - 'IRON_AXE'
            - 'GOLD_AXE'
            - 'DIAMOND_AXE'

See also: Value Change

Clone this wiki locally