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.