Cuberite Forum

Full Version: Lua, Mob AI and the kitchen sink
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would think it would be great to be able to tailor Mob AI through Lua.

Imagine having core behavior for the various mobs in the server, but each action having a hook to Lua for tailoring. That would be cool, and let there be a multitude of AI plugins. MC-Server could ship with a default that could be overridden.

I'm just starting to look at the code and see where I might be useful, but this seems like a win-win for the project. Do a base AI and then let the tinkerers tinker without having to touch the main project.
There's already plans to rewrite the AI, and give modders the ability to write their own components via Lua. I just have been busy with school and haven't been able to do the rewrite yet, though.

When we do start, any help would be appreciated.