#(LG_Legacy) Attached display entities being laggy

1 messages · Page 1 of 1 (latest)

vestal stump
#

I'm not sure whether this is a problem with display entities lately, or it's just how minecraft works but it seems if I attach a display entity ( text ) to the player and they wander around, it kind of... lags behind? It seems like it's not properly parenting to them and floats a bit behind.

This isn't the case with armor stands at all, and with armor stands they seem perfectly in sync with the players movement.

My goal here is to have a text above the player at all times in survival worlds that signify their pvp and safety status, thus the need for an attached text display above the player.

https://paste.denizenscript.com/View/108756 - Relevant WIP scripts, player online checking is due to delays in running the script during teleport events.

quick falconBOT
#

(LG_Legacy) Attached display entities being laggy

quick falconBOT
#

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>

vestal stump
#

Also not sure why it cut off some of the window.

mystic otterBOT
# onyx crescent !c attach
Group

entity

Syntax

attach [<entity>|...] [to:<entity>/cancel] (offset:<offset>) (relative) (yaw_offset:<#.#>) (pitch_offset:<#.#>) (sync_server) (no_rotate/no_pitch) (for:<player>|...)

Short Description

Attaches a list of entities to another entity, for client-visible motion sync.

Description

Attaches a list of entities to another entity, for client-visible motion sync.

You must specify the entity or list of entities to be attached.
You must specify the entity that they will be attached to, or 'cancel' to end attachment.

Optionally, specify an offset location vector to be a positional offset. This can include a yaw/pitch to offset those as well.
Note that setting an offset of 0,0,0 will produce slightly different visual results from not setting any offset.

Optionally, specify 'rel...

onyx crescent
#

isnt this command only like

#

synced on other clients

vestal stump
#

for argument is optional.

#

As said, with armor stands it's perfectly fine. ( Aside from it still rendering outside of the entity rendering range ??? )

#

sync_server argument doesn't seem to affect this.

#

For display entities*

#

By default it'll sync to everyone on the server, I think it's just weirdness going on with text display ( or more ) entities in general?

#

And it's not because it's attached to a player, did it to a pig and it does the same thing.

#

Let me turn off viaversion to make sure that's not a culprit, even though I'm on the same version.

#

Viaversion isn't the culprit either.

sand terrace
#

It’s a minecraft thing iirc, display entities have their movement packets synced less often/movement is not smoothed out unlike some other entities

#

I believe only “living” entities have that teleportation/movement smoothing, let me find where i saw it

#

and yes, armour stands seem to be considered living lol

vestal stump
#

Dammit.

umbral elk
#

Might be easier to just change the player's nameplate?

vestal stump
#

I was going to consider using them to replace player names too.

umbral elk
#

obviously not quite the same

vestal stump
#

I could shorten their name yes, but...

umbral elk
#

fair

#

what about colors?

#

players in combat get red names

vestal stump
#

Colors count towards the char name.

umbral elk
#

damn

vestal stump
#

And I'm already using teams for AFK status.

#

Or parties.

#

The only negative of armor stands is just them still rendering a few blocks outside of entity range unless they go further out, then it dissappears.

#

Doing this in general is a bit messy because a player teleporting away leaves the armor stand/hologram behind, so I gotta yeet and place it back on the player after teleporting.

#

I noticed some hinky stuff with attaching that I'll post in some minutes.

vestal stump
#

Well I can't replicate my other issue with attaching, might of gotten fixed because I was on 1.19.3 for a while and recently switched to .4

vestal stump
#

Alright, we're just gonna use armor stands and update them as seen fit through tasks. I guess I'll just use text display entities for actual holograms and not attached to moving entities.