Topic category: Help with Minecraft modding (Java Edition)
I tried and Im not sure this is working. I want an overlay that says the variable of your enemy when you look at him. I already did the same with enemys healths, so I now how to make an overlay and put the variable in the overlay, but I'dont can make it with variables.
What I did with current health:
For each entity as entity iterator at X look X position of event/target entity with raytraice 10 fluid mode none block mode outline...
set global variable to current health get nearest entity at... of type mob entity
I can make the same structure with variables I think, cuz I cant make a variable where is current health, so I did
For each entity as entity iterator at X look X position of event/target entity with raytraice 10 fluid mode none block mode outline...
If not is entity iterator the same entity as event/target entity
Do set global variable to get variable(another variable, not the same) for entity entity iterator for entity event/target entity