Skip to content

Conditional: Chance

ricochet1k edited this page Jul 1, 2012 · 3 revisions

Syntax: chance.{percentage}

Description: {percentage}% of the time, this will be true

Example:

Health: #2% chance for a Slime to spawn as REALLY big Slime.
    - 'if target.type.Slime and chance(2)':
        - 'targeteffect.setsize': '20'

See also: Set Size, Set Health, Entity Type

Clone this wiki locally