fix incorrect plants_lib api call for anthills
The aboid node was not correctly set resulting in metric assloads of anthills, which was clearly not intended :-) This also alises the current ones to air and replaces them with a new node name so as to clean up the overabundance. The alias and node name can be inverted later after it's certain that all old nodes have been cleaned out.master
parent
a69aff1a24
commit
164ef0e99a
|
@ -508,18 +508,20 @@ local SPAWN_DELAY = 1000
|
|||
local SPAWN_CHANCE = 200
|
||||
local anthill_seed_diff = 339
|
||||
|
||||
minetest.register_alias("farming:anthill", "air") -- to get rid of the old ones.
|
||||
|
||||
plantslib:spawn_on_surfaces({
|
||||
spawn_delay = SPAWN_DELAY,
|
||||
spawn_plants = {"farming:anthill"},
|
||||
spawn_plants = {"farming:ant_hill"},
|
||||
avoid_radius = 10,
|
||||
spawn_chance = SPAWN_CHANCE/10,
|
||||
spawn_surfaces = {"default:dirt_with_grass"},
|
||||
avoid_nodes = {"group:poisonivy", "group:flower", "group:flora"},
|
||||
avoid_nodes = {"farming:ant_hill"},
|
||||
seed_diff = anthill_seed_diff,
|
||||
light_min = 1,
|
||||
})
|
||||
|
||||
minetest.register_node("farming:anthill",{
|
||||
minetest.register_node("farming:ant_hill",{
|
||||
description = "Ant Hill",
|
||||
drawtype = "nodebox",
|
||||
sunlight_propagates = true,
|
||||
|
|
Loading…
Reference in New Issue