I have created a mob in blockbench and add animations such as walking, attack, blinking and flying.
But how do I create an AI for it?
I want the AI to be simular to a dog, so that it can follow me and look around, but I also want it to be able to ride it, make it able to fly and fight monsters.
I'm not any sort of pro coder or anything of the sort but I would make its class extend the horse class then change what happens when players hit it(instead of running, make it attack). then I think the dog's entity might actually change when it's tamed so I think you'd have to create a new class for a tamed version that could also extend the horse but I'd look at the code for the tamed dog and see what makes it follow the player and that sort of thing. Sorry if this doesn't help much!
Rollback Post to RevisionRollBack
"You know you're joke is good when you have to explain it to everyone."
Hi,
I have created a mob in blockbench and add animations such as walking, attack, blinking and flying.
But how do I create an AI for it?
I want the AI to be simular to a dog, so that it can follow me and look around, but I also want it to be able to ride it, make it able to fly and fight monsters.
I'm not any sort of pro coder or anything of the sort but I would make its class extend the horse class then change what happens when players hit it(instead of running, make it attack). then I think the dog's entity might actually change when it's tamed so I think you'd have to create a new class for a tamed version that could also extend the horse but I'd look at the code for the tamed dog and see what makes it follow the player and that sort of thing. Sorry if this doesn't help much!
"You know you're joke is good when you have to explain it to everyone."