VanessaE wrote:For the most part, plantlife only generates on newly explored areas of a map (regardless of the map's overall age), except for one or two items in the modpack such as mushrooms, which will spring up in old areas also.
126 -----------------------------------------------------------------------------------------------
127 -- Cut Grass becomes Hay over time
128 -----------------------------------------------------------------------------------------------
129 minetest.register_abm({
130 nodenames = {"dryplants:grass"},
131 interval = HAY_DRYING_TIME, --1200, -- 20 minutes: a minetest-day/night-cycle
132 chance = 1,
133 action = function(pos)
134 minetest.set_node(pos, {name="dryplants:hay"})
135 end,
136 })
137
138 -----------------------------------------------------------------------------------------------
139 -- Hay
140 -----------------------------------------------------------------------------------------------
141 minetest.register_node("dryplants:hay", {
142 description = "Hay",
143 inventory_image = "dryplants_hay.png",
144 wield_image = "dryplants_hay.png",
145 paramtype = "light",
146 sunlight_propagates = true,
147 tiles = {"dryplants_hay.png"},
148 drawtype = "nodebox",
149 node_box = {
150 type = "fixed",
151 fixed = {-0.5 , -0.5 , -0.5 , 0.5 , -0.4375, 0.5 },
152 },
153 groups = {snappy=3, flammable=2},
154 sounds = default.node_sound_leaves_defaults(),
155 })
2015-02-09_12:15:52.49602 ERROR[main]: ERROR: An unhandled exception occurred: ...ods/plantlife_modpack/nature_classic/global_function.lua:47: attempt to compare number with nil
2015-02-09_12:15:52.49607 ERROR[main]: stack traceback:
2015-02-09_12:15:52.49609 ERROR[main]: ...ods/plantlife_modpack/nature_classic/global_function.lua:47: in function 'grow_node'
2015-02-09_12:15:52.49611 ERROR[main]: ...ods/plantlife_modpack/nature_classic/global_function.lua:12: in function <...ods/plantlife_modpack/nature_classic/global_function.lua:3>
2015-02-09_12:15:52.49613 ERROR[main]: /srv/minetest/bin/../builtin/game/register.lua:341: in function </srv/minetest/bin/../builtin/game/register.lua:329>
Scheiker wrote:Maybe it is just me, but can anyone confirm that the bushes from bushes_classic are being generated? I can't seem to find them unless I spawn them myself.
Scheiker wrote:Scheiker wrote:Maybe it is just me, but can anyone confirm that the bushes from bushes_classic are being generated? I can't seem to find them unless I spawn them myself.
Nvm, I don't know what it was but after doing a rebuild of my GNU/LInux installation I can now see the bushes in places where I know I had looked before. Could of been a bad lua version or something, but at least it works now :)
VanessaE wrote:Sucks to be you for building something out of baskets ;-)
Users browsing this forum: No registered users and 23 guests