Could someone help me build a mod?

Post Reply
AndPherb
New member
Posts: 8
Joined: Wed Jan 14, 2026 04:49

Could someone help me build a mod?

by AndPherb » Post

I have no clue on how to mod this game. It's documentation gives me an idea of what's going on, but it doesn't show how elements interact, and lua isn't the programming language I normally use.

User avatar
Don
Member
Posts: 1893
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Could someone help me build a mod?

by Don » Post

Tell us about the mod you want
My mods on ContentDB. My profile on the forum. Over 50 000 Downloads!

User avatar
Blockhead
Moderator
Posts: 2989
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Could someone help me build a mod?

by Blockhead » Post

Go find mods that do things you want to do and read their source code. That will be a lot easier than trying to learn in a vacuum and compose things together. If you don't know what exactly needs doing, you can just start reading the source code of mods you already use.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Linuxdirk
Member
Posts: 3415
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Could someone help me build a mod?

by Linuxdirk » Post

AndPherb wrote:
Sat Jan 31, 2026 21:08
I have no clue on how to mod this game. It's documentation gives me an idea of what's going on, but it doesn't show how elements interact, and lua isn't the programming language I normally use.
Lua is an imperative scripting language that is widely used, often for embedded scripting like in Luanti. And the Luanti API is a large set of functions you use to interface with Luanti using Lua.

Interaction comes from three parts: First is your logic (the code you write to do the things you want it to do), second is the API your code is calling to change or add something to the environment, and third is the individual players using the functionality or items you added.

It’s a good suggestion to get familiar with Lua first. Even if it is simple, it does things different from other languages you might know in a lot of places.

The docs for creators (I will always prefer the raw API documentation due to better searchability and navigation) are aimed toward people already knowing how to use Lua.

You should also read the Luanti Modding Book giving you a great introduction on how to create mods.

User avatar
Sheriff_U3
Member
Posts: 42
Joined: Tue Aug 19, 2025 00:38
GitHub: Sheriff-Unit-3
IRC: Sheriff_U3
In-game: Sheriff_U3
Location: USA

Re: Could someone help me build a mod?

by Sheriff_U3 » Post

AndPherb wrote:
Sat Jan 31, 2026 21:08
but it doesn't show how elements interact, and lua isn't the programming language I normally use.
Well if you have any questions about certain functions or elements the just ask about them instead of us guessing. I'd at tools for things like formspecs and schematics, there's some on contentdb for in-world use and others that are stand-alone/browser-based.
Watch out! You never know when I'm around the corner.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest