Cuberite Forum
Lua, Mob AI and the kitchen sink - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Lua, Mob AI and the kitchen sink (/thread-1679.html)



Lua, Mob AI and the kitchen sink - wudles - 12-15-2014

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.


RE: Lua, Mob AI and the kitchen sink - SamJBarney - 12-15-2014

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.