Return the books when crafting enpty bookshelves

This commit is contained in:
Richard Qian 2016-12-02 22:52:33 -06:00 committed by GitHub
parent 646ac9dae8
commit b2b64f2f17
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ minetest.register_craft({
output = "moreblocks:empty_bookshelf",
type = "shapeless",
recipe = {"moreblocks:sweeper", "default:bookshelf"},
replacements = {{"default:bookshelf", "default:book 3"}},
-- When obtaining an empty bookshelf, return the books used in it as well
})
minetest.register_craft({