38 lines
792 B
Lua
38 lines
792 B
Lua
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
-- Functions
|
|
dofile(modpath.."/functions.lua")
|
|
|
|
-- Custom Nodes
|
|
dofile(modpath.."/nodes.lua")
|
|
|
|
-- Custom fences
|
|
dofile(modpath.."/fences.lua")
|
|
|
|
-- Custom mapgen ore generation
|
|
dofile(modpath.."/mapgen.lua")
|
|
|
|
-- Custom Tools
|
|
dofile(modpath.."/tools.lua")
|
|
|
|
-- Custom Crafts
|
|
dofile(modpath.."/crafting.lua")
|
|
|
|
-- Overrides
|
|
dofile(modpath.."/overrides.lua")
|
|
|
|
-- Hotbar texture
|
|
minetest.register_on_joinplayer(
|
|
function(player)
|
|
player:hud_set_hotbar_image("hud_hotbar.png")
|
|
player:hud_set_hotbar_selected_image("hud_hotbar_selected.png")
|
|
|
|
-- Set cloud height
|
|
local cloud_params = player:get_clouds()
|
|
cloud_params.height = 150
|
|
player:set_clouds(cloud_params)
|
|
end
|
|
)
|
|
|
|
minetest.log("action", "[nalc_default] loaded.")
|