-
Notifications
You must be signed in to change notification settings - Fork 3
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
Hologram feature questions #4
Comments
Hey, we have discussed this on our Discord server and I'm definitelly interested in these new features. It's just probably going to take a while for me to actually implement them into the plugin, as it is a lot of work. But I'm pretty sure it is, at one point, going to be a part of the plugin in some way. I guess we will just have to wait and see how this new feature is going to work when it gets released. |
Glad to hear. I look forward to seeing these features in DecentHolograms. I have been playing with the 23w06a snapshot, and it is quite exciting. |
The display entities (as of 23w06a) are missing a |
Please feel free to convert this issue into a feature request. |
Mojang also added an invisible entity for interaction, where you can define a width and height. This can be very useful in DH for easier interactions as A) You wouldn't rely on multiple entities to interact with (Reduces possible client-lag for large amounts of entities) and B) you could keep the armor stands with a 0 hitbox and add the entity when a click action is applied (People did complain about issues with armor stands still having a hitbox). It could perhaps even allow more precise per-line actions. Tho that would require proper alignment using specific off-sets from the armor stands and line height. |
Also, just for the sake of having stuff at one place, here are infos regarding text and item display entities that may be of use for DH (Taken from wiki): Text:
Item:
I personally feel like some of these things could be put as NBT stuff in the commands, if that would be a doable thing, as supporting all these things could become a tedious task in the end... Tho, personally speaking, I feel like these options should be available through dedicated commands:
Speaking of multi-line. I think DH should by default use only one text entity and simply add new lines to it using the line-break features... Question would be how to handle line heights and such in these cases as it could be a bit more difficult to achieve if people want specific line heights... Perhaps make it that lines no longer have a line height set and when one is added, treat it as a new, separate text display. |
At present, DH supports permission-based visibility of individual lines, so a single text with line-breaks would be significantly more difficult. |
I honestly have my doubt too many are using it... Tho, perhaps a system could be worked out where DH would keep text in the same display entity and only splits into new ones when specific settings (line height, permission, etc) are applied... |
Agree with all of that. A sample of one: I don't use separate text lines. |
A 1.19.4
text_display
entity can employ the following attributes:Some of the attributes can be applied to
block_display
anditem_display
entities as well. It looks like all of this could be implemented as packet-based pseudo-entities.Here is an example use case:
The text was updated successfully, but these errors were encountered: