zDevelopers / QuartzLib

A set of tools to develop plugins using the Bukkit API
https://dev.zcraft.fr/quartzlib
Other
19 stars 27 forks source link

Adding a highlight block effect. #54

Open Vlammar opened 3 years ago

Vlammar commented 3 years ago

It's possible to set a glowing effect on falling entity. Falling entity allow to have a shape that match the block targeted (flower_pot, chest...) and if the entity is set to a team it's possible to have colors associated to it. Using NMS to make sure only the player p is allow to see the effect.

Prototype of the method highlightBlock(Player p, Block b, Location loc, Color color)

LucBerge commented 3 years ago

You'll also need a method to remove the highlight effect and/or define the duration