Add sugar and change recipe

This commit is contained in:
MrIbby 2015-11-06 19:24:30 -08:00
parent 931b5c11f3
commit af72871bf0
3 changed files with 23 additions and 6 deletions

View File

@ -33,8 +33,9 @@ http://creativecommons.org/licenses/by-sa/4.0/
Authors of textures: Authors of textures:
-------------------- --------------------
Derived from textures by rubenwardy (CC BY-SA): rubenwardy (CC-BY-SA):
cake_bottom.png cake_bottom.png, derivative
cake_inner.png cake_inner.png, derivative
cake_side.png cake_side.png, derivative
cake_top.png cake_sugar.png
cake_top.png, derivative

View File

@ -49,8 +49,24 @@ for i, size in ipairs(sizes) do
}) })
end end
if minetest.get_modpath("food") == nil then
minetest.register_craftitem("cake:sugar", {
description = "Sugar",
inventory_image = "cake_sugar.png",
groups = {food_sugar=1}
})
minetest.register_craft({
type = "shapeless",
output = "cake:sugar",
recipe = {"default:papyrus"}
})
else
minetest.register_alias("cake:sugar", "food:sugar")
end
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "cake:cake", output = "cake:cake",
recipe = {"farming:flour", "farming:flour", "group:water_bucket"} recipe = {"farming:flour", "group:water_bucket", "group:food_sugar", "group:food_sugar"}
}) })

BIN
textures/cake_sugar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB