MiniTest/mods/default/init.lua

69 lines
1.3 KiB
Lua

-- 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
LIGHT_MAX = 14
-- Definitions made by this mod that other mods can use too
default = {}
default.dig = {
-- Cracky (pick)
stone = 1,
cobble = 2,
coal = 3,
iron = 4,
gold = 5,
diamond = 6,
sandstone = 7,
furnace = 8,
ironblock = 9,
goldblock = 10,
diamondblock = 11,
obsidian = 12,
ice = 13,
rail = 14,
iron_door = 15,
netherrack = 16,
netherbrick = 17,
redstone_ore = 18,
brick = 19,
-- Crumbly (shovel)
dirt_with_grass = 1,
dirt = 2,
sand = 3,
gravel = 4,
clay = 5,
snow = 6,
snowblock = 7,
nethersand = 8,
-- Choppy (axe)
tree = 1,
wood = 2,
bookshelf = 3,
fence = 4,
sign = 5,
chest = 6,
wooden_door = 7,
workbench = 8,
-- Snappy (shears)
leaves = 1,
wool = 2,
}
-- 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")