What file to edit for mod settings?

Post Reply
User avatar
wolfkin
Member
Posts: 12
Joined: Tue Oct 21, 2025 22:29
IRC: [wolfkin][superwolfkin]
In-game: wolfkin
Location: Up North

What file to edit for mod settings?

by wolfkin » Post

I think I have this issue on a few mods but currently I'm trying to work with Death Compass.
# When a player dies they'll be given a death compass automatically, and it will
# disappear when its duration expires or the player reaches the death location
death_compass_automatic (Death compass given to players automatically) bool false
But do I put this in world.mt or just edit it in the mods/death_compass/settingtypes.txt where that quote is found?

I tried putting it in world.mt
Image

but when I die. I do get a death message from glamorous_deaths but no compass. That only works if I have one in my inventory before hand.

Image
just another second banana

User avatar
Nathan.S
Member
Posts: 1182
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
Contact:

Re: What file to edit for mod settings?

by Nathan.S » Post

Death Compass Settings.png
Death Compass Settings.png (62.27 KiB) Viewed 2211 times
The easier way is to go to the settings in Luanti and search for Death Compass and change the setting there.
I record Luanti videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

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

Re: What file to edit for mod settings?

by Blockhead » Post

Not in world.mt: That only hold the handful of settings that the game engine allows to be per-world, most are global. Then the mapgen settings live in another file so that changes don't become global. You need a mod that adds World Settings, and mods have to explicity use a library like that mod to get per-world settings.

Not in settingtypes.txt: It's a little pitfall of the engine that the real defaults come from Lua and not in there.

So it goes in minetest.conf, which is easily edited with the main settings menu like Nathan has said.

To get per-world settings, some workarounds are:
  1. Run Luanti with different command-line arguments to --config.
  2. Modify the source code of the mod and put it into worlds/<worldname>/worldmods.
  3. Run the world with a custom game that has overrides for its own minetest.conf.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
wolfkin
Member
Posts: 12
Joined: Tue Oct 21, 2025 22:29
IRC: [wolfkin][superwolfkin]
In-game: wolfkin
Location: Up North

Re: What file to edit for mod settings?

by wolfkin » Post

The end destination is for an online server so I imagine the settings menu won't work there but thank you both. Got the answer I needed. Cheers.

Tested and it works like a charm. Again thanks.
just another second banana

bgstack15
Member
Posts: 76
Joined: Fri Feb 28, 2025 02:31

Re: What file to edit for mod settings?

by bgstack15 » Post

If you're using container tech, which container image you use affects the location of the default minetest.conf. So that --config <path> is a great option.

Official Luanti docker container uses CMD ["--config", "/etc/minetest/minetest.conf"], and the linuxserver.io one uses "/config/main-config/minetest.conf" which is a little confusing to me. I suspect it ties in nicely with other linuxserver.io container design.
cdb_5ea39b4225fd

User avatar
wolfkin
Member
Posts: 12
Joined: Tue Oct 21, 2025 22:29
IRC: [wolfkin][superwolfkin]
In-game: wolfkin
Location: Up North

Re: What file to edit for mod settings?

by wolfkin » Post

not yet unfortunately. I just haven't really sat down to teach myself docker. I get it conceptually but I don't know the specifics.

I just have a digital ocean droplet and I run it like bare like a linux server. Eventually I'll look into containerizing it and that'll let me run some other things on the same thing.
just another second banana

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest