1
0
mirror of https://github.com/Sokomine/locks.git synced 2025-07-17 05:10:28 +02:00

Change recipes when basic_materials mod is detected

This commit is contained in:
2020-10-15 10:17:04 +02:00
parent 4d3a7e51df
commit f0e4b2012e
7 changed files with 31 additions and 23 deletions

View File

@ -38,7 +38,7 @@ end
minetest.register_node("locks:shared_locked_chest", {
description = "Shared locked chest",
description = "Advanced shared locked chest",
tiles = locks.chest_add.tiles,
paramtype2 = "facedir",
groups = locks.chest_add.groups,
@ -140,7 +140,7 @@ minetest.register_node("locks:shared_locked_chest", {
minetest.register_craft({
output = 'locks:shared_locked_chest',
recipe = {
{ 'default:chest', 'locks:lock', '' },
{ 'locks:lock', 'default:chest', minetest.get_modpath("basic_materials") and 'basic_materials:ic' or ''},
},
})