Skip to content

Commit 0cf4fd4

Browse files
kilbithEkdohibs
authored andcommittedJul 17, 2015
Add mushrooms
1 parent 2ddbf68 commit 0cf4fd4

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
 

Diff for: ‎mods/flowers/README.txt

+3
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ http://sam.zoy.org/wtfpl/COPYING for more details.
1414
License of media (textures and sounds)
1515
--------------------------------------
1616
WTFPL
17+
18+
Gambit (WTFPL):
19+
flowers_mushroom_*.png

Diff for: ‎mods/flowers/init.lua

+27
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,33 @@ for _,item in pairs(flowers.datas) do
5757
add_simple_flower(unpack(item))
5858
end
5959

60+
local mushrooms_datas = {
61+
{"brown", 2}, {"red", -6}
62+
}
63+
64+
for _, m in pairs(mushrooms_datas) do
65+
local name, nut = m[1], m[2]
66+
minetest.register_node("flowers:mushroom_"..name, {
67+
description = string.sub(string.upper(name), 0, 1)..
68+
string.sub(name, 2).." Mushroom",
69+
tiles = {"flowers_mushroom_"..name..".png"},
70+
inventory_image = "flowers_mushroom_"..name..".png",
71+
wield_image = "flowers_mushroom_"..name..".png",
72+
drawtype = "plantlike",
73+
paramtype = "light",
74+
sunlight_propagates = true,
75+
walkable = false,
76+
buildable_to = true,
77+
groups = {snappy=3,flammable=3,attached_node=1,not_in_creative_inventory=1},
78+
sounds = default.node_sound_leaves_defaults(),
79+
on_use = minetest.item_eat(nut),
80+
selection_box = {
81+
type = "fixed",
82+
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
83+
}
84+
})
85+
end
86+
6087
minetest.register_abm({
6188
nodenames = {"group:flora"},
6289
neighbors = {"default:dirt_with_grass", "default:desert_sand"},

Diff for: ‎mods/flowers/textures/flowers_mushroom_brown.png

155 Bytes
Loading

Diff for: ‎mods/flowers/textures/flowers_mushroom_red.png

167 Bytes
Loading

1 commit comments

Comments
 (1)

HybridDog commented on Jul 17, 2015

@HybridDog
Contributor

@DS-Minetest told me that he would prefer the mushrooms from my riesenpilz mod

Please sign in to comment.