throwing/init.lua

72 lines
2.1 KiB
Lua
Raw Normal View History

2015-03-09 18:52:56 +01:00
arrows = {
{"throwing:arrow_steel", "throwing:arrow_steel_entity"},
{"throwing:arrow_stone", "throwing:arrow_stone_entity"},
{"throwing:arrow_obsidian", "throwing:arrow_obsidian_entity"},
{"throwing:arrow_fire", "throwing:arrow_fire_entity"},
{"throwing:arrow_teleport", "throwing:arrow_teleport_entity"},
{"throwing:arrow_dig", "throwing:arrow_dig_entity"},
{"throwing:arrow_build", "throwing:arrow_build_entity"},
{"throwing:arrow_tnt", "throwing:arrow_tnt_entity"},
{"throwing:arrow_torch", "throwing:arrow_torch_entity"},
{"throwing:arrow_diamond", "throwing:arrow_diamond_entity"},
2015-03-13 12:47:16 +01:00
{"throwing:arrow_shell", "throwing:arrow_shell_entity"},
2015-03-14 11:49:06 +01:00
{"throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_blue_entity"},
2015-03-09 18:52:56 +01:00
}
2015-03-17 12:05:11 +01:00
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
2015-03-09 18:52:56 +01:00
dofile(minetest.get_modpath("throwing").."/bows.lua")
2015-03-17 12:05:11 +01:00
if not DISABLE_STEEL_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/steel_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_STONE_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/stone_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_STONE_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/obsidian_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_FIRE_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/fire_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_TELEPORT_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/teleport_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_DIG_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/dig_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_BUILD_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/build_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_TNT_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/tnt_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_TORCH_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/torch_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_DIAMOND_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/diamond_arrow.lua")
end
2015-03-17 12:05:11 +01:00
if not DISABLE_SHELL_ARROW then
2015-03-14 11:49:06 +01:00
dofile(minetest.get_modpath("throwing").."/shell_arrow.lua")
end
2015-03-13 12:47:16 +01:00
2015-03-09 18:52:56 +01:00
if minetest.setting_get("log_mods") then
minetest.log("action", "throwing loaded")
end