using settingtype

master
A. Demant 2018-11-15 05:34:11 +01:00
parent 86936122ad
commit 2e0458da7d
3 changed files with 11 additions and 0 deletions

8
config.lua Normal file
View File

@ -0,0 +1,8 @@
--[[
--]]
local viscosity=1
minerdream.ingot_stack_max = minetest.settings:get("minerdream.ingot_stack_max") or 250
minerdream.lump_stack_max = minetest.settings:get("minerdream.lump_stack_max") or 999

View File

@ -4,6 +4,7 @@ minerdream.modname = minetest.get_current_modname()
minerdream.items={}
dofile(minerdream.path .. "/functions.lua")
dofile(minerdream.path .. "/config.lua")
dofile(minerdream.path .. "/api.lua")
dofile(minerdream.path .. "/read_config.lua")
dofile(minerdream.path .. "/items.lua")

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
minerdream.ingot_stack_max (Max stack for ingots) int 250 99 1000
minerdream.lump_stack_max (Max stack for lumps) int 999 99 1000