commit
11d66ac4e6
17
wheat.lua
17
wheat.lua
|
@ -30,8 +30,8 @@ minetest.register_node("farming:wheat_1", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("farming:wheat_2", {
|
minetest.register_node("farming:wheat_2", {
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
drop = "",
|
drop = "",
|
||||||
|
@ -47,8 +47,8 @@ minetest.register_node("farming:wheat_2", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("farming:wheat_3", {
|
minetest.register_node("farming:wheat_3", {
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
drop = "",
|
drop = "",
|
||||||
|
@ -64,8 +64,8 @@ minetest.register_node("farming:wheat_3", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("farming:wheat", {
|
minetest.register_node("farming:wheat", {
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"farming_wheat.png"},
|
tiles = {"farming_wheat.png"},
|
||||||
|
@ -102,21 +102,23 @@ minetest.register_craftitem("farming:flour", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:cake_mix",
|
output = "farming:dough",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"farming:flour", "farming:flour", "farming:flour", "farming:flour", "bucket:bucket_water"},
|
recipe = {"farming:flour", "farming:flour", "farming:flour", "farming:flour", "bucket:bucket_water"},
|
||||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("farming:cake_mix", {
|
minetest.register_alias("farming:cake_mix","farming:dough")
|
||||||
description = "Cake Mix",
|
|
||||||
|
minetest.register_craftitem("farming:dough", {
|
||||||
|
description = "Bread Dough",
|
||||||
inventory_image = "farming_cake_mix.png",
|
inventory_image = "farming_cake_mix.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "farming:bread",
|
output = "farming:bread",
|
||||||
recipe = "farming:cake_mix",
|
recipe = "farming:dough",
|
||||||
cooktime = 10
|
cooktime = 10
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -124,6 +126,7 @@ minetest.register_craftitem("farming:bread", {
|
||||||
description = "Bread",
|
description = "Bread",
|
||||||
inventory_image = "farming_bread.png",
|
inventory_image = "farming_bread.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
|
groups = {food=2},
|
||||||
on_use = minetest.item_eat(10)
|
on_use = minetest.item_eat(10)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue