mirror of
https://gitlab.com/echoes91/throwing.git
synced 2025-06-30 07:10:22 +02:00
1.0rc1
This commit is contained in:
84
init.lua
84
init.lua
@ -13,42 +13,58 @@ arrows = {
|
||||
{"throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_blue_entity"},
|
||||
}
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/config.lua")
|
||||
dofile(minetest.get_modpath("throwing").."/bows.lua")
|
||||
if not disable_steel_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/steel_arrow.lua")
|
||||
end
|
||||
if not disable_stone_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/stone_arrow.lua")
|
||||
end
|
||||
if not disable_stone_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/obsidian_arrow.lua")
|
||||
end
|
||||
if not disable_fire_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/fire_arrow.lua")
|
||||
end
|
||||
if not disable_teleport_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/teleport_arrow.lua")
|
||||
end
|
||||
if not disable_dig_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/dig_arrow.lua")
|
||||
end
|
||||
if not disable_build_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/build_arrow.lua")
|
||||
end
|
||||
if not disable_tnt_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/tnt_arrow.lua")
|
||||
end
|
||||
if not disable_torch_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/torch_arrow.lua")
|
||||
end
|
||||
if not disable_diamond_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/diamond_arrow.lua")
|
||||
end
|
||||
if not disable_shell_arrow then
|
||||
dofile(minetest.get_modpath("throwing").."/shell_arrow.lua")
|
||||
local input = io.open(minetest.get_modpath("throwing").."/throwing.conf", "r")
|
||||
if input then
|
||||
dofile(minetest.get_modpath("throwing").."/throwing.conf")
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/bows.lua")
|
||||
|
||||
if not DISABLE_STEEL_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/steel_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_STONE_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/stone_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_STONE_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/obsidian_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_FIRE_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/fire_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_TELEPORT_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/teleport_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_DIG_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/dig_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_BUILD_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/build_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_TNT_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/tnt_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_TORCH_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/torch_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_DIAMOND_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/diamond_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_SHELL_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/shell_arrow.lua")
|
||||
end
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "throwing loaded")
|
||||
|
Reference in New Issue
Block a user