2015-06-29 20:55:56 +03:00
|
|
|
-- Minetest 0.4 mod: default
|
|
|
|
-- See README.txt for licensing and other information.
|
|
|
|
-- The API documentation in here was moved into doc/lua_api.txt
|
|
|
|
|
|
|
|
WATER_ALPHA = 160
|
|
|
|
WATER_VISC = 1
|
|
|
|
LAVA_VISC = 7
|
|
|
|
|
|
|
|
-- Definitions made by this mod that other mods can use too
|
|
|
|
default = {}
|
2017-01-06 00:44:47 +02:00
|
|
|
default.gui_slots = "listcolors[#9990;#FFF7;#FFF0;#000;#FFF]"
|
|
|
|
default.gui_bg = "bgcolor[#080808BB;true]"
|
2017-01-12 16:13:40 +02:00
|
|
|
default.gui_bg_img = ""
|
2017-01-06 00:44:47 +02:00
|
|
|
|
|
|
|
default.inventory_header = default.gui_slots .. default.gui_bg
|
2015-06-29 20:55:56 +03:00
|
|
|
|
2017-01-04 11:05:46 +02:00
|
|
|
minetest.nodedef_default.stack_max = 64
|
|
|
|
minetest.craftitemdef_default.stack_max = 64
|
|
|
|
|
2015-06-29 20:55:56 +03:00
|
|
|
-- Load files
|
|
|
|
dofile(minetest.get_modpath("default").."/functions.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/nodes.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/tools.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/craftitems.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/crafting.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/mapgen.lua")
|
|
|
|
dofile(minetest.get_modpath("default").."/player.lua")
|
|
|
|
|
|
|
|
-- Aliases
|
|
|
|
minetest.register_alias("default:desert_sand", "default:sand")
|
|
|
|
minetest.register_alias("default:desert_stone", "default:sandstone")
|
|
|
|
minetest.register_alias("default:iron_lump", "default:stone_with_iron")
|
2015-07-03 07:57:09 +03:00
|
|
|
minetest.register_alias("default:gold_lump", "default:stone_with_gold")
|