EDIT: It might be Bukkit.getOnlinePlayers().length depending on what build you use IIRC
Well the goal is actually 3 blocks above in that case. It is getting high enough though. You can tell because I am able to push them onto the...
Yeah it seems to be jumping up but not also moving forward which is an issue... Looking for a possible fix though
I am creating a custom pathfinder. The pathfinder works, except when the entity reaches a block it needs to jump over it does this:
I changed it to use unique id's.
I guess I could use world UUID's. Although, it isn't too often people have two worlds with the same name as far as I know. Also, just so you all...
I like that idea @RingOfStorms and I will add comments to help out the developers. Working on rewriting a bit as we speak.
EDIT: Updated the post...
Aimed towards beginning developers
So here is the new code. Special thanks to @RingOfStorms and @ChipDev for the suggestions:
All in one...
Running with spigot.
Yeah I'm just confused as I use super similar code for a custom event I'm working on and have tested to work fine.
What other events are you listening to in the MyListener class?
How are you getting negative numbers? xD What is the code you are using?
What do you mean the creation of the event?
Separate names with a comma.