forked from mtcontrib/arrow_signs
Change recipe when basic_materials mod is detected
This commit is contained in:
parent
9c385319cb
commit
1660d80668
@ -1,3 +1,4 @@
|
|||||||
default
|
default
|
||||||
signs_lib?
|
signs_lib?
|
||||||
locks?
|
locks?
|
||||||
|
basic_materials?
|
||||||
|
3
mod.conf
Normal file
3
mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = arrow_signs
|
||||||
|
depends = default
|
||||||
|
optional_depends = signs_lib,locks,basic_materials
|
@ -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.
|
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", {
|
minetest.register_node("arrow_signs:shared_locked", {
|
||||||
description = "Shared locked sign",
|
description = "Shared locked arrow sign",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = arrow_signs.nodebox,
|
node_box = arrow_signs.nodebox,
|
||||||
selection_box = arrow_signs.selection_box,
|
selection_box = arrow_signs.selection_box,
|
||||||
@ -69,7 +69,7 @@ minetest.register_node("arrow_signs:shared_locked", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = 'shapeless',
|
type = 'shapeless',
|
||||||
output = 'arrow_signs:shared_locked',
|
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
|
--Redefinition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user