F
F
Fufilda2020-01-16 05:28:04
API
Fufilda, 2020-01-16 05:28:04

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

1 answer(s)
A
antonwx, 2020-01-16
@fufilda

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 question

Ask a Question

731 491 924 answers to any question