Skip to content
1cec0ld edited this page Oct 18, 2012 · 8 revisions

Makes the entity run the given command. Viable entities include players and console.

Syntax

- 'command.{entity}': 'command [parameters]'

Examples

Damage: #Don't let them have the loot!
    - 'if damage >= target_health':
        - 'command.console': 'clearinventory %{target_name}'
Join: #Force them on first login!
    - 'if entity_tag_firstjoin != 1':
        - 'command.entity': 'rules'
        - 'tag.entity.firstjoin': '1'
Death: #give overpowered kills vengeance
    - 'if attacker.wearing._diamondSet and target.wearing._leatherSet':
        - 'command.attacker': 'suicide'
        - 'message.attacker': "Your cowardice causes you to die of shame"
Damage:
    - 'if attacker.type.Zombie':
        - 'if target.type.player':
            - 'if chance.10':
                - 'tag.target.infected': '+1'
                - 'message.target': 'You have been infected by the zombie!'
            - 'if target_tag_infected >= 25 AND target_tag_infecttag == 0':
                - 'command.console': 'pex user %{target_name} suffix " [&4INFECTED&f]"'
                - 'tag.target.infecttag': '1'
            - 'if target_tag_infected < 25 AND target_tag_infecttag == 1':
                - 'command.console': 'pex user %{target_name} suffix ""'
                - 'tag.target.infecttag': '0'
#Courtesy of Skuli
Clone this wiki locally