Remove hard mod dependencies other than default

This commit is contained in:
stujones11 2019-03-21 21:08:40 +00:00
parent 16451b7c35
commit d1e1dcc1d6
24 changed files with 90 additions and 51 deletions

View file

@ -300,14 +300,16 @@ if shooter.config.enable_crafting == true then
{"", "default:paper", "default:stick"},
},
})
for _, color in pairs(dye_basecolors) do
if color ~= "white" then
minetest.register_craft({
output = "shooter_crossbow:arrow_"..color,
recipe = {
{"", "dye:"..color, "shooter_crossbow:arrow_white"},
},
})
if minetest.get_modpath("dye") then
for _, color in pairs(dye_basecolors) do
if color ~= "white" then
minetest.register_craft({
output = "shooter_crossbow:arrow_"..color,
recipe = {
{"", "dye:"..color, "shooter_crossbow:arrow_white"},
},
})
end
end
end
end

View file

@ -1,3 +1,4 @@
name = shooter_crossbow
description = Adds a crossbow with colored arrows
depends = wool, dye, shooter
depends = shooter
optional_depends = dye