Add sugar and change recipe
This commit is contained in:
parent
931b5c11f3
commit
af72871bf0
11
README.txt
11
README.txt
@ -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
|
||||||
|
18
init.lua
18
init.lua
@ -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
BIN
textures/cake_sugar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Loading…
x
Reference in New Issue
Block a user