Rosewood-Development / RoseStacker

A next-generation stacker plugin for Spigot and Paper servers
Other
137 stars 35 forks source link

Accessing stacked amount #116

Open deadspidervenom opened 1 month ago

deadspidervenom commented 1 month ago

how would i access the stack amount via another mod like "levelledmobs" for use in the name display. As your name display conflicts with theirs.

Esophose commented 1 month ago

There isn't currently any way to do that, the two plugins are incompatible for the nametags as they both try to modify the name. The best you could do is disable one of the plugins from handling the display name.

deadspidervenom commented 1 month ago

from my understanding levelledmobs is able to access the metadata or PDC of a plugin, then use the data in its nametag and you are able to do so manually.

if rosestacker uses NBT data storage for its stacked amount, it should be able to access it via this route. and display it.

deadspidervenom commented 1 month ago

Perhaps this would be easier to just PlaceholderAPI support, since levelledmobs and other such plugins have it as well. Something like

%stackcountmob% %stackcountitem% %stackcountspawner%

Esophose commented 1 month ago

Placeholders cannot be parsed for mobs, only players.

deadspidervenom commented 1 month ago

Huh but ive seen hologram mob healthbars that have placeholderapi compatibility, or am i mistaking the usage of that compatibility.

Esophose commented 1 month ago

Those other plugins are likely adding the placeholders themselves, of which I would have no power to modify on my own. Something I could do is add support for the levelledmobs level in the RoseStacker mob name tag, but adding RoseStacker's stack count to another plugin's nametag would have to be implemented by that other plugin, PlaceholderAPI does not have any sort of capability of being used for mobs. If exposing the levelledmobs level to the RoseStacker mob name tag is something that could be useful for you, I could turn this into a feature request instead.

deadspidervenom commented 1 month ago

(i apologize if this i am misunderstanding this)

So if instead of giving it to placeholderapi what about the opposite? Letting placeholderapi stuff being used in your holograms or is that already a thing? I pretty new to the placeholderAPI stuff i apologize.