confuser / BarAPI

DEPRECATED Control Minecraft boss bar programatically
http://dev.bukkit.org/bukkit-plugins/bar-api/
Other
24 stars 48 forks source link

Any way to block default Wither Boss Bar? #49

Closed Cryptite closed 9 years ago

Cryptite commented 9 years ago

I have a situation where I have a custom wither mob and I'd like to show his Bar only to players within 15 blocks of him. Is there any way to block the default Wither bar showing up (basically to all of the players in the small map we're dealing with) so I can use BarAPI instead? Or perhaps modify the wither bar to reduce the distance it's shown to nearby players?

Currently I'm using BarAPI to show his health but then the vanilla bar still pops up and they fight each other presently.

confuser commented 9 years ago

There's no way to prevent the vanilla bar from showing I'm afraid. This is all handled client side, so there's very little that can be done.

One possible solution however is to use BarAPI only for players that are too far away from your custom wither mob to see the vanilla bar.

Cryptite commented 9 years ago

The biggest issue is the need to keep the bar showing only for close-by players. I'm building a MOBA style pvp map and attacking the wither should be something that could be pulled off quietly; but since the entire map sees the bar the minute the thing is attacked, it kind of ruins that whole idea.

May have to come up with some other solution.