Doors: Allow arbitrary recipe to be passed, even nil
This allows mod makers to register their own recipies, including none, to register doors.
This commit is contained in:
parent
8422f2ef52
commit
363b95c003
2 changed files with 27 additions and 13 deletions
|
@ -97,7 +97,7 @@ doors.get(pos)
|
|||
inventory_image = "mod_door_inv.png",
|
||||
groups = {choppy = 1},
|
||||
tiles = { "mod_door.png" },
|
||||
material = "default:wood", -- used to make a craft recipe
|
||||
recipe = craftrecipe,
|
||||
sounds = default.node_sound_wood_defaults(), -- optional
|
||||
sound_open = sound play for open door, -- optional
|
||||
sound_close = sound play for close door, -- optional
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue