Compare commits

...

3 Commits

Author SHA1 Message Date
157173f627 Delete depends.txt and description.txt, add mod.conf 2022-07-07 19:14:12 +02:00
e696e08de3 Merge branch 'orcz' 2021-02-27 23:35:22 +01:00
1ddf3c5ed3 Fix deprecated call to Minetest settings 2021-02-27 22:59:47 +01:00
4 changed files with 10 additions and 16 deletions

View File

@ -1,3 +0,0 @@
default
farming?
treasurer?

View File

@ -1 +0,0 @@
Adds simple underground mines with a few rare treasure chests.

View File

@ -1,16 +1,10 @@
local MINE_DEEP_MIN = tonumber(minetest.setting_get("mines_deep_min"))
local MINE_DEEP_MAX = tonumber(minetest.setting_get("mines_deep_max"))
local MINE_FACTOR = tonumber(minetest.setting_get("mines_spawnfactor"))
local MINE_DEEP_MIN = tonumber(minetest.settings:get("mines_deep_min")) or -64
local MINE_DEEP_MAX = tonumber(minetest.settings:get("mines_deep_max")) or -380
local MINE_FACTOR = tonumber(minetest.settings:get("mines_spawnfactor")) or 1.5
if not MINE_DEEP_MIN then
MINE_DEEP_MIN = -64
end
if not MINE_DEEP_MAX then
MINE_DEEP_MAX = -13800
end
if not MINE_FACTOR then
MINE_FACTOR = 1.5
end
minetest.log("info", "Mod \"tsm_mines\" set MINE_DEEP_MIN to "..MINE_DEEP_MIN)
minetest.log("info", "Mod \"tsm_mines\" set MINE_DEEP_MAX to "..MINE_DEEP_MAX)
minetest.log("info", "Mod \"tsm_mines\" set MINE_FACTOR to "..MINE_FACTOR)
minetest.register_node("tsm_mines:dummy", {
description = "tsm_mines dummy node",

View File

@ -1 +1,5 @@
name = tsm_mines
title = TSM Mines
description = Adds simple underground mines with a few rare treasure chests.
depends = default
optional_depends = farming,treasurer