Hologram - s99889989/CustomDisplay GitHub Wiki
You can use holograms with the Holographic Displays plugin.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
Function | FC | The holographic display function to be used | None |
Message | M | Content | None |
LocationType | LT | The coordinates are divided into world (WOD), target coordinates (LOC), and target vector (VEC) | loc |
X | X coordinate | 0 | |
Y | Y coordinate | 0 | |
Z | Z coordinate | 0 |
Examples
Attack display damage (up)
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
Attack display damage (up)(Critical)
AttackCritDisplayUp:
Action:
- Loop[onStart=AttackCritDisplayUp-Start;onTime=AttackCritDisplayUp-Time;onEnd=AttackCritDisplayUp-End;period=3;duration=20]
AttackCritDisplayUp-Start:
Action:
- createHD[m={cd_damage};HDtype=loc;x=0;y=0.5;z=0] @=target
#- addLineHD[m=%player_name%]
AttackCritDisplayUp-Time:
Action:
- teleportHD[HDtype=loc;x=0;y=0.1;z=0] @=targetLocation
AttackCritDisplayUp-End:
Action:
- deleteHD
Attack display damage (throw)
AttackDisplayThrow:
Action:
- Loop[onStart=AttackDisplayThrow-Start;onTime=AttackDisplayThrow-Time;onEnd=AttackDisplayThrow2;period=3;duration=6]
AttackDisplayThrow-Start:
Action:
- createHD[m={cd_damage};HDtype=loc;x=0;y=0.3;z=0] @=target
- addLineHD[m=%player_name%]
AttackDisplayThrow-Time:
Action:
- teleportHD[HDtype=vec;x=0.4;y=0.8;z=0.4] @=selfLocation
AttackDisplayThrow2:
Action:
- Loop[onTime=AttackDisplayThrow-Time2;onEnd=AttackDisplayThrow3;period=3;duration=1]
AttackDisplayThrow-Time2:
Action:
- teleportHD[HDtype=vec;x=0.4;y=-0.8;z=0.4] @=selfLocation
AttackDisplayThrow3:
Action:
- Loop[onTime=AttackDisplayThrow-Time3;onEnd=AttackDisplayThrow-End3;period=3;duration=15]
AttackDisplayThrow-Time3:
Action:
- teleportHD[HDtype=vec;x=0.4;y=-0.9;z=0.4] @=selfLocation
AttackDisplayThrow-End3:
Action:
- deleteHD
Attacking monsters shows blood volume.
EntityTopDisplayMonster:
Action:
- Condition[entityTypeList=Monster]
- Loop[onStart=EntityTopDisplayMonster-Start;onTime=EntityTopDisplayMonster-Time;onEnd=EntityTopDisplayMonster-End;period=10;duration=200]
EntityTopDisplayMonster-Start:
Action:
- createHD[m={cd_health_number}{cd_health_conversion};HDtype=loc;x=0;y=1.2;z=0;healthConver=health-monster] @=target
EntityTopDisplayMonster-Time:
Action:
- teleportHD[HDtype=loc;x=0;y=1.2;z=0] @=target
- Condition[health=targetChange]
- removeLineHD[m=0]
- addLineHD[m={cd_health_number}{cd_health_conversion}]
EntityTopDisplayMonster-End:
Action:
- deleteHD
Attack animals show blood volume
EntityTopDisplayAnimal:
Action:
- Condition[entityTypeList=Animal]
- Loop[onStart=EntityTopDisplayAnimal-Start;onTime=EntityTopDisplayAnimal-Time;onEnd=EntityTopDisplayAnimal-End;period=10;duration=200]
EntityTopDisplayAnimal-Start:
Action:
- createHD[m={cd_health_number}{cd_health_conversion};HDtype=loc;x=0;y=1.0;z=0;healthConver=health-animal] @=target
EntityTopDisplayAnimal-Time:
Action:
- teleportHD[HDtype=loc;x=0;y=1.0;z=0] @=target
- Condition[health=targetChange]
- removeLineHD[m=0]
- addLineHD[m={cd_health_number}{cd_health_conversion}]
EntityTopDisplayAnimal-End:
Action:
- deleteHD
The attacking player displays information.
EntityTopDisplayPlayer:
Action:
- Condition[entityType=Player]
- Loop[onStart=EntityTopDisplayPlayer-Start;onTime=EntityTopDisplayPlayer-Time;onEnd=EntityTopDisplayPlayer-End;period=20;duration=200]
EntityTopDisplayPlayer-Start:
Action:
- createHD[m=&player_health_now&/%player_max_health%&player_health_proportion2&;HDtype=loc;x=0;y=0.8;z=0;healthConver=health-animal] @=target
- addLineHD[m=%mmocore_mana%/%mmocore_stat_max_mana%&player_mana_proportion2&]
EntityTopDisplayPlayer-Time:
Action:
- teleportHD[HDtype=loc;x=0;y=0.8;z=0] @=target
- removeLineHD[m=0]
- removeLineHD[m=0]
- addLineHD[m=&player_health_now&/%player_max_health%&player_health_proportion2&]
- addLineHD[m=%mmocore_mana%/%mmocore_stat_max_mana%&player_mana_proportion2&]
EntityTopDisplayPlayer-End:
Action:
- deleteHD