Could someone help me build a mod?
Could someone help me build a mod?
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.
- 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?
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 ✝️♂
- 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?
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.
- 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?
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.
Who is online
Users browsing this forum: No registered users and 1 guest