Remove hard mod dependencies other than default
This commit is contained in:
parent
16451b7c35
commit
d1e1dcc1d6
24 changed files with 90 additions and 51 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = shooter_crossbow
|
||||
description = Adds a crossbow with colored arrows
|
||||
depends = wool, dye, shooter
|
||||
depends = shooter
|
||||
optional_depends = dye
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue