adds dough craftitem

This commit is contained in:
Victor Gridnevsky 2020-05-15 18:25:41 +03:00
parent 186b28b875
commit 2fb2eb2050
3 changed files with 19 additions and 6 deletions

View File

@ -4,3 +4,8 @@ minetest.override_item("farming:melon_8", {
buildable_to = false
})
-- Dough craftitem
minetest.register_craftitem(":farming:dough", {
description = "Dough",
inventory_image = "farming_dough.png",
})

View File

@ -96,12 +96,12 @@ if minetest.get_modpath("farming") then
if minetest.get_modpath("wine") then
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 9',
output = 'farming:dough 9',
recipe = {'farming:flour', 'wine:glass_beer', 'farming:salt'},
})
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 11',
output = 'farming:dough 11',
recipe = {
'farming:flour', 'wine:glass_beer', 'farming:salt',
'farming:sugar'
@ -109,12 +109,12 @@ if minetest.get_modpath("farming") then
})
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 9',
output = 'farming:dough 9',
recipe = {'farming:flour', 'wine:glass_wheat_beer', 'farming:salt'},
})
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 11',
output = 'farming:dough 11',
recipe = {
'farming:flour', 'wine:glass_wheat_beer', 'farming:salt',
'farming:sugar'
@ -124,7 +124,7 @@ if minetest.get_modpath("farming") then
if minetest.get_modpath("homedecor_gastronomy") then
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 9',
output = 'farming:dough 9',
recipe = {'farming:flour', 'homedecor:beer_mug', 'farming:salt'},
replacements = {
{"homedecor:beer_mug", "vessels:drinking_glass"}
@ -132,7 +132,7 @@ if minetest.get_modpath("farming") then
})
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 11',
output = 'farming:dough 11',
recipe = {
'farming:flour', 'homedecor:beer_mug', 'farming:salt',
'farming:sugar'
@ -143,3 +143,11 @@ if minetest.get_modpath("farming") then
})
end
end
-- Cooking dough to bread
minetest.register_craft({
type = "cooking",
cooktime = 15,
output = "farming:bread",
recipe = "farming:dough"
})

BIN
textures/farming_dough.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB