Jump to content

redw0lf

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by redw0lf

  1. That sounds really interesting. I'll try to look into this one. (And: The basic squid movement it more or less random movement and tentacle swinging). But don't you have problems with this when you try to add other AI Tasks e.g. the Zombie swarming or so (this may be really interesting for sharks)
  2. The basic problem is mainly that the water block is not recognized as a pathable block. Hence the pathfinding does not work. So the basic question would be: How do I change the Water Block/pathfinding algorithms in such a way that the water block is pathable.
  3. Hi there, I'm currently fiddling a little bit with Minecraft modding, currently I'm working on some kind of a hostile squid. For this purpose I created the according classes (render entity ...) and coppied most of the behaviour from the Zombies AI. The AI is modified in the way, that the Swimming behaviour is disabled, hence the mob sinks down to the ocean floor. On the floor it behaves exactly like a zombie, i.e. it tracks the player and moves towards the player and attacks when the player is within reach. Now there comes the problem with the pathfinding: The mob doesn't recognize the water block as a sufficient block to kind of "walk" onto, hence it isn't used for pathfinding. This problem can be come over while activating the swimming behaviour (which kinds of lets the mob jump to swim up). The problem with this solution nonetheless is, that the behaviour gets called to often and therefore somehow messes up the EntityAIAttackOnCollide behaviour which tracks the mob towards the player (but not on the y axxis.). What basically happens is that the swim behaviour is called to often and the mob swims to the water surface. In addition the mob cannot pathfind (because it has no solid ground beneath). Another way to correct the pathfinding would also be to fizzle with the navigator. But when settings either canSwim or avoidsWater to the opposite of the default value the pathfinding is also messed up. With this option i'm guessing it consumes to much time to actually find one of the bests times and hence stops pathfinding (or something like this). What I'm asking for is, if someone has found or is using a good way for mobs to pathfind under water? I'm out of guessing. Hopefully someone will be able to help
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.