Skip to content

Commit

Permalink
Merge pull request #20 from pandorabox-io/dough_patch
Browse files Browse the repository at this point in the history
Add dough recipe, craftitem, etc.
  • Loading branch information
OgelGames committed May 16, 2020
2 parents 186b28b + 1dbb9a0 commit 80420aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions farming.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
20 changes: 14 additions & 6 deletions recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,25 @@ 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'
},
})
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'
Expand All @@ -124,15 +124,15 @@ 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"}
}
})
minetest.register_craft({
type = "shapeless",
output = 'farming:bread 11',
output = 'farming:dough 11',
recipe = {
'farming:flour', 'homedecor:beer_mug', 'farming:salt',
'farming:sugar'
Expand All @@ -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"
})
Binary file added textures/farming_dough.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 80420aa

Please sign in to comment.