25 lines
819 B
Lua
Executable File
25 lines
819 B
Lua
Executable File
dofile(minetest.get_modpath("spears").."/defaults.lua")
|
|
|
|
local input = io.open(minetest.get_modpath("spears").."/spears.conf", "r")
|
|
if input then
|
|
dofile(minetest.get_modpath("spears").."/spears.conf")
|
|
input:close()
|
|
input = nil
|
|
end
|
|
|
|
dofile(minetest.get_modpath("spears").."/functions.lua")
|
|
dofile(minetest.get_modpath("spears").."/tools.lua")
|
|
|
|
|
|
if minetest.settings:get_bool("log_mods") then
|
|
minetest.log("action", "[spears] Loaded.")
|
|
end
|
|
|
|
-- Aliases
|
|
minetest.register_alias("throwing:spear_stone", "spears:spear_stone")
|
|
minetest.register_alias("throwing:spear_steel", "spears:spear_steel")
|
|
minetest.register_alias("throwing:spear_diamond", "spears:spear_diamond")
|
|
minetest.register_alias("throwing:spear_obsidian", "spears:spear_obsidian")
|
|
minetest.register_alias("throwing:spear_mithril", "spears:spear_mithril")
|
|
|