Create New Wetlands Mod
Scaffold a new mod following Wetlands project conventions.
Critical VoxeLibre Rules
- •Use
optional_dependsinstead ofdependsin mod.conf - •Use VoxeLibre item names, NOT vanilla Minetest names:
- •
mcl_core:stick(notdefault:stick) - •
mcl_core:stone(notdefault:stone) - •
mcl_books:book(notdefault:book) - •
mcl_farming:wheat_item(notfarming:wheat)
- •
- •Do NOT depend on
mcl_sounds(not available)
Process
1. Gather Information
Ask the user for:
- •Mod name: lowercase with underscores (e.g.,
animal_shelter) - •Purpose: What the mod does
- •Dependencies: Which VoxeLibre APIs it needs
2. Create Directory Structure
Create server/mods/$ARGUMENTS/ with:
mod.conf:
ini
name = [mod_name] title = [Mod Title] description = [Description for Wetlands server] author = Wetlands Team version = 1.0.0 optional_depends = mcl_core, mcl_formspec
init.lua:
lua
-- [Mod Title] for Wetlands Server
-- Version: 1.0.0
-- [Brief description]
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
-- [Mod logic here]
minetest.log("action", "[" .. modname .. "] Loaded successfully")
3. Enable in Server Config
Read server/config/luanti.conf and add:
code
load_mod_[mod_name] = true
4. Content Guidelines (Wetlands Values)
All mods must align with Wetlands values:
- •Educational and compassionate content
- •Appropriate for children 7+
- •No violence, no explicit content
- •Promote animal care, sustainability, creativity
- •Spanish language support where applicable
5. Provide Commit Message
code
feat(mods): Add [mod_name] - [brief purpose] New mod for Wetlands server: - [Key feature 1] - [Key feature 2]