Loop - s99889989/CustomDisplay GitHub Wiki
Is possible to make a continuous action with loop
action
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
period | How often to execute the onTime action | 1 | |
duration | How long will this action last. You can use "unlimited" to limit the time. | 1 | |
onStart | Start the action | None | |
onTime | Action performed within the duration | None | |
onEnd | The action to be performed after the end | None |
Examples
AttackDisplayUp:
Action:
- Loop[onStart=AttackDisplayUp-Start,onTime=AttackDisplayUp-Time,onEnd=AttackDisplayUp-End,period=3,duration=20]
AttackDisplayUp-Start:
Action:
- createHD[m={cd_damage},HDtype=loc,x=0,y=0.5,z=0] @=target
- addLineHD[m=%player_name%]
AttackDisplayUp-Time:
Action:
- teleportHD[HDtype=loc,x=0,y=0.1,z=0] @=targetLocation
AttackDisplayUp-End:
Action:
- deleteHD