Mineclonia/mods/ITEMS/mcl_mushrooms/small.lua

55 lines
1.7 KiB
Lua
Raw Normal View History

2017-03-01 00:16:52 +00:00
minetest.register_node("mcl_mushrooms:mushroom_brown", {
2015-06-29 17:55:56 +00:00
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-02-01 12:44:36 +00:00
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
2017-01-04 09:11:35 +00:00
light_source = 1,
2015-06-29 17:55:56 +00:00
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
},
_mcl_blast_resistance = 0,
2015-06-29 17:55:56 +00:00
})
2017-03-01 00:16:52 +00:00
minetest.register_node("mcl_mushrooms:mushroom_red", {
2015-06-29 17:55:56 +00:00
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-02-01 12:44:36 +00:00
groups = {dig_immediate=3,mushroom=1,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
2015-06-29 17:55:56 +00:00
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0.015, 0.15 },
},
_mcl_blast_resistance = 0,
2015-06-29 17:55:56 +00:00
})
2017-03-01 00:16:52 +00:00
minetest.register_craftitem("mcl_mushrooms:mushroom_stew", {
2015-06-29 17:55:56 +00:00
description = "Mushroom Stew",
_doc_items_longdesc = "Mushroom stew is a healthy soup which can be consumed for 6 hunger points.",
2017-01-20 17:38:12 +00:00
inventory_image = "farming_mushroom_stew.png",
2017-02-16 16:45:33 +00:00
on_place = minetest.item_eat(6, "mcl_core:bowl"),
on_secondary_use = minetest.item_eat(6, "mcl_core:bowl"),
2017-02-16 14:08:26 +00:00
groups = { food = 3, eatable = 6 },
2017-01-16 22:34:40 +00:00
stack_max = 1,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "shapeless",
2017-03-01 00:16:52 +00:00
output = "mcl_mushrooms:mushroom_stew",
recipe = {'mcl_core:bowl', 'mcl_mushrooms:mushroom_brown', 'mcl_mushrooms:mushroom_red'}
2017-01-04 09:11:35 +00:00
})
2017-03-01 00:16:52 +00:00