Merge pull request #3 from Athemis/master
[MineClone.git] / mods / farming / mushrooms.lua
blob16ae377d877797042cad9022a4e01030de764df8
1 minetest.register_node("farming:mushroom_brown", {
2 description = "Brown Mushroom",
3 drawtype = "plantlike",
4 tiles = { "farming_mushroom_brown.png" },
5 inventory_image = "farming_mushroom_brown.png",
6 wield_image = "farming_mushroom_brown.png",
7 sunlight_propagates = true,
8 paramtype = "light",
9 walkable = false,
10 groups = {snappy=3,flammable=2,mushroom=1,attached_node=1},
11 sounds = default.node_sound_leaves_defaults(),
12 selection_box = {
13 type = "fixed",
14 fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
18 minetest.register_node("farming:mushroom_red", {
19 description = "Red Mushroom",
20 drawtype = "plantlike",
21 tiles = { "farming_mushroom_red.png" },
22 inventory_image = "farming_mushroom_red.png",
23 wield_image = "farming_mushroom_red.png",
24 sunlight_propagates = true,
25 paramtype = "light",
26 walkable = false,
27 groups = {snappy=3,flammable=2,mushroom=1,attached_node=1},
28 sounds = default.node_sound_leaves_defaults(),
29 selection_box = {
30 type = "fixed",
31 fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
35 minetest.register_craftitem("farming:mushroom_stew", {
36 description = "Mushroom Stew",
37 inventory_image = "farming_mushroom_stew.png",
38 on_use = minetest.item_eat(6),
39 stack_max = 64,
42 minetest.register_craft({
43 type = "shapeless",
44 output = "farming:mushroom_stew",
45 recipe = {'default:bowl', 'farming:mushroom_brown', 'farming:mushroom_red'}