#(0TickPingo) creating a health bar underneath entities

13 messages · Page 1 of 1 (latest)

proven wren
#

Hello, I am working on a script that creates lines underneath an entity's name. I already have a script that generates a cool progress bar, and now I am just thinking - how would I create an armorstand that follows the mob? How would I check if the mob already has said armorstand, how would I have multiple lines (maybe multiple armorstands? But lag.), etc. My current progress (not very much):

entity_health_bars_data:
    type: data
    update on damaged: true
    update ratelimit: 0.2s
    lines:
    - <[entity].flag[tickutil_progress_bar.health]>

entity_health_bars_update_bar_on_entity:
    type: task
    debug: false
    definitions: entity
    script:
    - run tickutil_progress_bar_update_entity_task def.entity:<[entity]>
    - define lines <script[entity_health_bars_data].parsed_key[lines]>

tickutil_progress_bar_update_entity_task flags the entity's tickutil_progress_bar.health with the progress bar.

spice ravenBOT
#

(0TickPingo) creating a health bar underneath entities

spice ravenBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

proven wren
#

so it seems like i figured it out

proven wren
#

more context:
i spawn armor stands, and then use !c attach to attach them to the mob