What lines of Minetest sourcecode have something todo wmobs?

Post Reply
User avatar
22i
Member
Posts: 22
Joined: Sat May 20, 2017 18:52
GitHub: 22i

What lines of Minetest sourcecode have something todo wmobs?

by 22i » Post

What files in Minetest's source code https://github.com/minetest/minetest and what line have something to do with entities or mobs?

Where and to what file should some mob api be ported from lua to c++?

Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: What lines of Minetest sourcecode have something todo wm

by Sokomine » Post

To my knowledge there's no direct support of mobs at all. Entities do exist. As to where they are handled in the code..I'd have to search that as well. If you're seriously intrested, please take a basic look at the code yourshelf and then get into contact with the devellopers on IRC in channel #minetest-dev on the freenode network.
A list of my mods can be found here.

User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: What lines of Minetest sourcecode have something todo wm

by sorcerykid » Post

There is nothing on the CPP side that controls mobs; all of that logic is currently Lua only. You would have to define a new class (perhaps a subclass of LuaEntity SAO) and develop a suitable API from scratch.

User avatar
22i
Member
Posts: 22
Joined: Sat May 20, 2017 18:52
GitHub: 22i

Re: What lines of Minetest sourcecode have something todo wm

by 22i » Post


Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests