2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
-- Default mod
|
|
|
|
-- By Kaadmy, for Pixture
|
|
|
|
--
|
|
|
|
|
|
|
|
default = {}
|
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
default.SWAMP_WATER_ALPHA = 220
|
|
|
|
default.SWAMP_WATER_VISC = 4
|
|
|
|
|
2015-09-27 01:34:45 +02:00
|
|
|
default.RIVER_WATER_ALPHA = 160
|
|
|
|
default.RIVER_WATER_VISC = 2
|
|
|
|
|
2015-09-01 17:15:24 +02:00
|
|
|
default.WATER_ALPHA = 200
|
|
|
|
default.WATER_VISC = 1
|
2015-09-27 01:34:45 +02:00
|
|
|
|
2015-09-01 17:15:24 +02:00
|
|
|
default.LIGHT_MAX = 14
|
|
|
|
|
|
|
|
function default.log(text, type)
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.log("action", "Pixture ["..type.."] "..text)
|
2015-09-09 17:59:11 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function default.dumpvec(v)
|
|
|
|
return v.x..":"..v.y..":"..v.z
|
2015-09-01 17:15:24 +02:00
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.nodedef_default.stack_max = 60
|
|
|
|
minetest.craftitemdef_default.stack_max = 60
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
function minetest.nodedef_default.on_receive_fields(pos, form_name, fields, player)
|
2015-09-01 17:15:24 +02:00
|
|
|
default.ui.receive_fields(player, form_name, fields)
|
|
|
|
end
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/formspec.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/functions.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/sounds.lua")
|
2019-08-29 19:51:23 +02:00
|
|
|
|
|
|
|
dofile(minetest.get_modpath("default").."/nodes.lua") -- simple nodes
|
|
|
|
dofile(minetest.get_modpath("default").."/torch.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/furnace.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/container.lua") -- chest and bookshelf
|
|
|
|
dofile(minetest.get_modpath("default").."/sign.lua")
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("default").."/craftitems.lua") -- simple craftitems
|
2019-08-29 18:23:06 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/bucket.lua")
|
2017-05-12 04:29:55 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/tools.lua")
|
2019-08-29 19:51:23 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/fertilizer.lua")
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("default").."/crafting.lua")
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/mapgen.lua")
|
2019-08-29 19:51:23 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
dofile(minetest.get_modpath("default").."/hud.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/player.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/model.lua")
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-14 23:50:37 +02:00
|
|
|
default.log("mod:default", "loaded")
|