@@ -85,23 +85,23 @@ minetest.register_abm({
85
85
elseif under .name ~= " default:dirt_with_grass" then
86
86
return
87
87
end
88
-
88
+
89
89
local light = minetest .get_node_light (pos )
90
90
if not light or light < 13 then
91
91
return
92
92
end
93
-
93
+
94
94
local pos0 = {x = pos .x - 4 , y = pos .y - 4 , z = pos .z - 4 }
95
95
local pos1 = {x = pos .x + 4 , y = pos .y + 4 , z = pos .z + 4 }
96
96
if # minetest .find_nodes_in_area (pos0 , pos1 , " group:flora_block" ) > 0 then
97
97
return
98
98
end
99
-
99
+
100
100
local flowers = minetest .find_nodes_in_area (pos0 , pos1 , " group:flora" )
101
101
if # flowers > 3 then
102
102
return
103
103
end
104
-
104
+
105
105
local seedling = minetest .find_nodes_in_area (pos0 , pos1 , " default:dirt_with_grass" )
106
106
if # seedling > 0 then
107
107
seedling = seedling [math.random (# seedling )]
@@ -145,11 +145,12 @@ for _, m in pairs(mushrooms_datas) do
145
145
buildable_to = true ,
146
146
groups = {snappy = 3 , flammable = 3 , attached_node = 1 },
147
147
drop = {
148
+ max_items = 1 ,
148
149
items = {
149
- {items = {" flowers:mushroom_spores_ " .. name }, rarity = 2 ,},
150
- {items = {" flowers:mushroom_spores_" .. name }, rarity = 2 ,},
151
- {items = {" flowers:mushroom_spores_" .. name }, rarity = 2 ,},
152
- {items = {" flowers:mushroom_ " .. name } ,},
150
+ {items = {" flowers:mushroom_ " .. name }, rarity = 2 ,},
151
+ {items = {" flowers:mushroom_spores_" .. name }, rarity = 3 ,},
152
+ {items = {" flowers:mushroom_spores_" .. name .. " 2 " }, rarity = 2 ,},
153
+ {items = {" flowers:mushroom_spores_ " .. name .. " 3 " }, rarity = 2 ,},
153
154
},
154
155
},
155
156
sounds = default .node_sound_leaves_defaults (),
0 commit comments