Answer the question
In order to leave comments, you need to log in
Block/mob selection event in bukkit?
I am writing a plugin for minecraft, I want that when you hover over a mob, its HP appears at the top of the screen.
Yesterday all evening I was looking for an event that is responsible for "focusing on the creature", I did not find anything.
Does such an event even exist? Are there alternatives?
Answer the question
In order to leave comments, you need to log in
There is no such event. HP of mobs above the head is implemented through setCustomName and setCustomNameVisible = false. Of course, you can catch the player’s line of sight and check if there is a mob on it, but this is not a viable case, because. takes too much CPU time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question