2015-06-29 20:55:56 +03:00
|
|
|
minetest.register_node("farming:mushroom_brown", {
|
|
|
|
description = "Brown Mushroom",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "farming_mushroom_brown.png" },
|
|
|
|
inventory_image = "farming_mushroom_brown.png",
|
|
|
|
wield_image = "farming_mushroom_brown.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2017-01-20 06:54:09 +03:00
|
|
|
groups = {dig_immediate=3,flammable=2,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
|
2015-06-29 20:55:56 +03:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2017-01-04 12:11:35 +03:00
|
|
|
light_source = 1,
|
2015-06-29 20:55:56 +03:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("farming:mushroom_red", {
|
|
|
|
description = "Red Mushroom",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = { "farming_mushroom_red.png" },
|
|
|
|
inventory_image = "farming_mushroom_red.png",
|
|
|
|
wield_image = "farming_mushroom_red.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2017-01-20 06:54:09 +03:00
|
|
|
groups = {dig_immediate=3,flammable=2,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
|
2015-06-29 20:55:56 +03:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("farming:mushroom_stew", {
|
|
|
|
description = "Mushroom Stew",
|
|
|
|
inventory_image = "farming_mushroom_stew.png",
|
|
|
|
on_use = minetest.item_eat(6),
|
2017-01-16 16:29:41 +03:00
|
|
|
groups = { food = 2, eatable = 6 },
|
2017-01-17 01:34:40 +03:00
|
|
|
stack_max = 1,
|
2015-06-29 20:55:56 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "farming:mushroom_stew",
|
|
|
|
recipe = {'default:bowl', 'farming:mushroom_brown', 'farming:mushroom_red'}
|
2017-01-04 12:11:35 +03:00
|
|
|
})
|