forked from mtcontrib/throwing
1.0 definitive shot/reload & fireworks!
This commit is contained in:
13
init.lua
13
init.lua
@ -1,4 +1,4 @@
|
||||
arrows = {
|
||||
throwing_arrows = {
|
||||
{"throwing:arrow_steel", "throwing:arrow_steel_entity"},
|
||||
{"throwing:arrow_stone", "throwing:arrow_stone_entity"},
|
||||
{"throwing:arrow_obsidian", "throwing:arrow_obsidian_entity"},
|
||||
@ -11,6 +11,7 @@ arrows = {
|
||||
{"throwing:arrow_diamond", "throwing:arrow_diamond_entity"},
|
||||
{"throwing:arrow_shell", "throwing:arrow_shell_entity"},
|
||||
{"throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_blue_entity"},
|
||||
{"throwing:arrow_fireworks_red", "throwing:arrow_fireworks_red_entity"},
|
||||
}
|
||||
|
||||
local input = io.open(minetest.get_modpath("throwing").."/throwing.conf", "r")
|
||||
@ -20,6 +21,8 @@ if input then
|
||||
input = nil
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/functions.lua")
|
||||
|
||||
dofile(minetest.get_modpath("throwing").."/bows.lua")
|
||||
|
||||
if not DISABLE_STEEL_ARROW then
|
||||
@ -66,6 +69,14 @@ if not DISABLE_SHELL_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/shell_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_FIREWORKS_BLUE_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/fireworks_blue_arrow.lua")
|
||||
end
|
||||
|
||||
if not DISABLE_FIREWORKS_RED_ARROW then
|
||||
dofile(minetest.get_modpath("throwing").."/fireworks_red_arrow.lua")
|
||||
end
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
minetest.log("action", "throwing loaded")
|
||||
end
|
||||
|
Reference in New Issue
Block a user