Development Blog
Development Blog
29th of May 2012
I just worked several hours on my MobControl-API... and it works :) It's not finished yet, but i coded a great pathfinding engine which is the base for everything the plugin might do. Another part of the API can take control over the mobs movement and can move it along the precalculated path. It's not perfect so far. For example is the mob still trying to walk his original path, which creates some kind of stuttering. Another problem that is still unsolved is the direction, the mob is looking. I guess i can build a workaround by taking the mobs current location change the Yaw of the Location and use teleport(Location) to turn the mob in the wanted direction. That is not working properly right now. No idea why. I guess the teleport needs some time to take affect or gets overwritten by any other function that is part of the bukkit processes to control the mobs. But I guess I can build a satisfying solution soon.
11th of May 2012
Ok, PathfinderGoalSelector was useless to think about. But I guess I made a breakthrough by just using an Vector that gets monitored by an Synced Task to cover some events, like a wall, an obstacle, an abyss, water or lava. Right now I'm working on a small API to provide this function without steering the mob manually. The API should do all the work. I'm just telling the API what the mob shall do and the API does everything that is needed to accomplish that goal.
30th of April 2012
CraftBukkit Build# 2157 provides the following improvements:
- Add PathfinderGoalSelector for diff visibility
- Optimize AI and EntityLiving ticking That sounds like a new base to control some mobs. Will try that.
7th of April 2012
Right now, it seems like there is no possible way to change a creatures target. I will investigate that and keep asking in the forum to get updates on this.
Comments