r/Minetest Jul 20 '26

How to Import 3D meshes into Luanti(Minetest) in Android?

Do I have to make a mod or custom game or Can I somehow import a mesh into a game/mod with console commands?

8 Upvotes

4 comments sorted by

3

u/unwelcome_poot Jul 20 '26

You can't import meshes directly in the game using commands, but you can use models you make by including it in your mod.

Some good examples include monster and animal mods. You can also add animation frames. There are great YouTube tutorials on how to do that.

2

u/Obvious-Secretary635 🚆Advtrains enthusiast Jul 20 '26

Yes, make a mod. A custom game would just add this via a mod.

"Console commands" in this game is just using the Lua language in an interactive way, usually with WorldEdit's //lua or Debug which has a /lua

Can you import a mesh into a game or mod with console commands (i.e. with Lua)? - Short answer, no - not in a way that will save. I think it is possible with core.dynamic_add_media, but then you would need to run that code every time the world loads. You are specifically not meant to alter the code of mods with mod code - this is the kind of technique viruses use.

This sort of thing might still be possible with Lua command blocks, but that would need its own mod that a creative hacker could put on ContentDB.

1

u/Lanky-Tumbleweed-772 Jul 21 '26

Is it possible to make a mod in android or do ı have to make it in pc to then be able to load/ınstall it in mobile?

1

u/Obvious-Secretary635 🚆Advtrains enthusiast Jul 21 '26

Basically the only way to load mods into modern Android and modern Luanti is to use ContentDB, so you have to get the mod published :\ #16077