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

Persistent holograms #2

Closed
Skullians opened this issue Oct 17, 2024 · 7 comments
Closed

Persistent holograms #2

Skullians opened this issue Oct 17, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Skullians
Copy link

How could I use this API to respawn the hologram when moving away, and returning back?

@max1mde
Copy link
Owner

max1mde commented Oct 17, 2024

How could I use this API to respawn the hologram when moving away, and returning back?

Try
TextHologram#spawn(Location)

@Skullians
Copy link
Author

That is what I’ve done.
I’ve even tried copying that class over myself into my own project directly and using it.
Once moving away, and moving back, it disappears.
Same goes for your test plugin.

How could I use this API to respawn the hologram when moving away, and returning back?

Try TextHologram#spawn(Location)

@max1mde
Copy link
Owner

max1mde commented Oct 18, 2024

That is what I’ve done. I’ve even tried copying that class over myself into my own project directly and using it. Once moving away, and moving back, it disappears. Same goes for your test plugin.

How could I use this API to respawn the hologram when moving away, and returning back?

Try TextHologram#spawn(Location)

And what if you use RenderMode.ALL?

.. new TextHologram(id, RenderMode.ALL);

@Skullians
Copy link
Author

That is what I’ve done. I’ve even tried copying that class over myself into my own project directly and using it. Once moving away, and moving back, it disappears. Same goes for your test plugin.

How could I use this API to respawn the hologram when moving away, and returning back?

Try TextHologram#spawn(Location)

And what if you use RenderMode.ALL?

.. new TextHologram(id, RenderMode.ALL);

Already tried it (currently already using it)

@Skullians
Copy link
Author

If you wish, see https://github.com/TerraByteDev/SkyFactionsReborn/blob/main/src/main/java/net/skullian/skyfactions/util/hologram/TextHologram.java
I just copied the class over as a test and never removed it.
Using PacketEvents 2.5.0 and EntityLib 2.4.10-SNAPSHOT

@Skullians
Copy link
Author

bump

@max1mde
Copy link
Owner

max1mde commented Dec 15, 2024

@max1mde max1mde closed this as completed Dec 15, 2024
@max1mde max1mde added the bug Something isn't working label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants