Discussion in 'Resources' started by bigteddy98, Jul 18, 2014.
This resource is no longer availabe.
This method was already discussed in my thread and I already made clear why I didn't like this method.
Although NMS is hardly preferable, there are things that you, to my knowledge, cannot achieve without it. And while my method is inefficient, it is more complete than what it would be without.
For those who'd rather not use NMS and don't mind some of the smaller details, this is fine though.
Which advantages does NMS offer us? As far as I tested this version it works perfect.I think you chose for NMS with a reason, but I can't think of a reason you chose NMS.
I didn't want the entity atop the players head to be in any way noticeable, whether that be particle effects, noises, or anything of the sort.
that's why I use a Squid, instead of a Bat. As far as I known Squids do not make particles or noises.
The particle being the invisibility potion.
They make particles, and in water they make noises.
bigteddy98 does this affect hitboxes?
completely idiotic methods to archive something much worse then NMS...
Just saying, I'd recommend adding the squids to an arraylist and then on the entitydamageevent check if the entity attacked is in the arraylist. That way if some other plugin has invisible squids on people's heads for some reason it won't make them invincible. Very impractical, I know, but it's good practice to make sure Utils can't affect other plugins or classes in unintended ways. Otherwise, I severely recommend using NMS for this.
This is very nice!
Another reason why NMS is better in this case.
bigteddy98 Hi !
When you teleport a player using player.teleport(...) in a plugin which uses this class, it does not work
Garris0n Oh okay, I understand why now. Thank you
Add data tags to the squid in case other plugins add squids to the heads..
Separate names with a comma.