Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health-dependent color variable #278

Open
lokka30 opened this issue Aug 13, 2021 · 5 comments
Open

Add health-dependent color variable #278

lokka30 opened this issue Aug 13, 2021 · 5 comments
Assignees
Labels
priority: normal Normal priority status: thoughts wanted Thoughts from the community are desired status: waiting for approval Waiting for approval from maintainers type: improvement Add or adjust a feature

Comments

@lokka30
Copy link
Member

lokka30 commented Aug 13, 2021

Add a variable to change color depending on percentage of mob health.

For example:

'41-100': '&a'
'20-40': '&e'
'<20': '&c'

And so we can use like %color% in the nametag?

https://discord.com/channels/752310043214479462/829238692161781770/875679380955869234

@lokka30 lokka30 added type: improvement Add or adjust a feature priority: normal Normal priority status: unassigned target version Needs a future version assigned to it labels Aug 13, 2021
@UltimaOath
Copy link
Collaborator

UltimaOath commented Aug 15, 2021

Basically identical to the %tiered% and how it functions, except that this new tag will update based on the health and config similar to how health indicator works (edited I noticed I went on a tangent half way into the sentence lol)

@lokka30 lokka30 removed the status: unassigned target version Needs a future version assigned to it label Aug 16, 2021
@UltimaOath
Copy link
Collaborator

Leaving a note here because it's in a similar vein feature wise:
The idea of applying a fake glow effect via PL to entities that are attacked. This glow effect would be colored based based on remaining health of the entity.

@UltimaOath
Copy link
Collaborator

UltimaOath commented Nov 10, 2021

nametags:
  tiered-health-placeholder:
    100: '&6'
    50: '&#abc123'
    15: ''
    0: ''

Updated suggestion on implementation. 100/0 are the required top and bottom, and the middle can be any value for different colors. 100 used for all health between it and the next line. So and so forth, until the final X to 0 health is the last color. 0 is considered 'default' otherwise.
Implemented as %tiered-health%

@lokka30 lokka30 added status: unassigned target version Needs a future version assigned to it and removed 3.3.X status: unassigned target version Needs a future version assigned to it labels Nov 13, 2021
@lokka30 lokka30 added status: confirmed Confirmed by a maintainer status: on hold Other things need to be resolved before progress can continue labels Jan 9, 2022
@lokka30 lokka30 changed the title Request: Health-dependent color variable Health-dependent color variable Jan 9, 2022
@lokka30 lokka30 changed the title Health-dependent color variable Add health-dependent color variable Jan 18, 2022
@lokka30 lokka30 removed the status: on hold Other things need to be resolved before progress can continue label Jan 18, 2022
@lokka30
Copy link
Member Author

lokka30 commented Jan 18, 2022

Being brainstormed in demo actions.yml

@lokka30 lokka30 closed this as completed Jan 18, 2022
@UltimaOath
Copy link
Collaborator

settings:
  tiered-health-placeholder:
    100: '&6'
    50: '&#abc123'
    15: ''
    0: ''

Recovering issue for recent player request;
https://discord.com/channels/752310043214479462/760051505067458590/1254269215330930710

Suggested functioning same as:
#278 (comment)

@UltimaOath UltimaOath reopened this Jun 23, 2024
@UltimaOath UltimaOath removed the status: confirmed Confirmed by a maintainer label Jun 23, 2024
@UltimaOath UltimaOath added status: thoughts wanted Thoughts from the community are desired status: waiting for approval Waiting for approval from maintainers labels Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal Normal priority status: thoughts wanted Thoughts from the community are desired status: waiting for approval Waiting for approval from maintainers type: improvement Add or adjust a feature
Projects
None yet
Development

No branches or pull requests

3 participants