Made the definitions better
parent
0cc0df2257
commit
a0ec3228fe
15
wheat.lua
15
wheat.lua
|
@ -14,7 +14,6 @@ minetest.register_craftitem("farming:wheat_seed", {
|
|||
|
||||
minetest.register_node("farming:wheat_1", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drop = "",
|
||||
|
@ -31,7 +30,6 @@ minetest.register_node("farming:wheat_1", {
|
|||
|
||||
minetest.register_node("farming:wheat_2", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drop = "",
|
||||
|
@ -48,7 +46,6 @@ minetest.register_node("farming:wheat_2", {
|
|||
|
||||
minetest.register_node("farming:wheat_3", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
drop = "",
|
||||
|
@ -65,7 +62,6 @@ minetest.register_node("farming:wheat_3", {
|
|||
|
||||
minetest.register_node("farming:wheat", {
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
drawtype = "plantlike",
|
||||
tiles = {"farming_wheat.png"},
|
||||
|
@ -102,21 +98,23 @@ minetest.register_craftitem("farming:flour", {
|
|||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cake_mix",
|
||||
output = "farming:dough",
|
||||
type = "shapeless",
|
||||
recipe = {"farming:flour", "farming:flour", "farming:flour", "farming:flour", "bucket:bucket_water"},
|
||||
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:cake_mix", {
|
||||
description = "Cake Mix",
|
||||
minetest.register_alias("farming:cake_mix","farming:dough")
|
||||
|
||||
minetest.register_craftitem("farming:dough", {
|
||||
description = "Bread Dough",
|
||||
inventory_image = "farming_cake_mix.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "farming:bread",
|
||||
recipe = "farming:cake_mix",
|
||||
recipe = "farming:dough",
|
||||
cooktime = 10
|
||||
})
|
||||
|
||||
|
@ -124,6 +122,7 @@ minetest.register_craftitem("farming:bread", {
|
|||
description = "Bread",
|
||||
inventory_image = "farming_bread.png",
|
||||
stack_max = 1,
|
||||
groups = {food=2},
|
||||
on_use = minetest.item_eat(10)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue