Change recipe when basic_materials mod is detected

This commit is contained in:
Sys Quatre 2020-10-15 10:35:32 +02:00
parent 9c385319cb
commit 1660d80668
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,4 @@
default
signs_lib?
locks?
locks?
basic_materials?

3
mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = arrow_signs
depends = default
optional_depends = signs_lib,locks,basic_materials

View File

@ -5,7 +5,7 @@
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
]]
minetest.register_node("arrow_signs:shared_locked", {
description = "Shared locked sign",
description = "Shared locked arrow sign",
drawtype = "nodebox",
node_box = arrow_signs.nodebox,
selection_box = arrow_signs.selection_box,
@ -69,7 +69,7 @@ minetest.register_node("arrow_signs:shared_locked", {
minetest.register_craft({
type = 'shapeless',
output = 'arrow_signs:shared_locked',
recipe = {'arrow_signs:wall', 'locks:lock'},
recipe = {'arrow_signs:wall', 'locks:lock', minetest.get_modpath("basic_materials") and "basic_materials:ic" or ""},
})
--Redefinition