Ocelot becoming angry if hit
Hello
What command I should use to spawn an ocelot which still will hunt rabbits but will not do me harm in survival mode (easy) if I hit it? No peaceful mode is possible... Version M:EE 1.17.31
-
I think that’s normal that it attacks you if you hit it. Maybe you should tame it first.
1 -
Thank you, Kira! No, it is for the game's sake - I am building a new game with new mobs and ocelot is the template mob for a predator whose population needs to be regulated to restore the ecological balance in nature. I will look, how I can tame it with the command, however, I need it to be a predator first who attacks the rabbits.
0 -
I just now checked if I had the right animal mob in the Tynker and it is the ocelot, that has been programmed to act like a wolf(!!!). Any other suggestions?
0 -
To change the behavior, you will likely need to learn about creating a behavior pack to modify your mob's behaviors. Look up bedrock development. This is a little more involved than just spawning a creature and running a command. If you have a template world you are working from. You might want to copy the world files and then take a look in the files in the behavior packs and see which one has the entity files and look at those in a text editor and see if you can get an idea of what is going on.
I have not personally done any development work that deals with entity behaviors but there is a whole discord server for Bedrock development. Just make sure you stick with things that work in 1.17 and lower (basically just don't use anything that is considered experimental, so much easier now that we caught up closer to bedrock, it had been getting so frustrating when we were stuck in 1.14!)
1 -
Thanks, Aleece!
0
Please sign in to leave a comment.
Comments
5 comments