make the farming mod optional
This commit is contained in:
parent
33d88fe713
commit
e2183ed03d
@ -1,7 +1,6 @@
|
||||
default
|
||||
subterrane
|
||||
farming
|
||||
harderstone?
|
||||
farming?
|
||||
cottages?
|
||||
bucket?
|
||||
dynamic_liquid?
|
@ -142,6 +142,8 @@ local grow_underground_plant = function(pos, node)
|
||||
end
|
||||
|
||||
dfcaverns.register_grow_abm = function(names, interval, chance)
|
||||
|
||||
if minetest.get_modpath("farming") then
|
||||
minetest.register_abm({
|
||||
nodenames = names,
|
||||
interval = interval,
|
||||
@ -157,6 +159,7 @@ dfcaverns.register_grow_abm = function(names, interval, chance)
|
||||
grow_underground_plant(pos, node)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = names,
|
||||
|
BIN
textures/dfcaverns_spore_tree_spores.png
Normal file
BIN
textures/dfcaverns_spore_tree_spores.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 B |
@ -20,4 +20,4 @@ dfcaverns_flour - derived from farming
|
||||
dfcaverns_bread - derived from farming
|
||||
dfcaverns_pig_tail_thread - copied from farming
|
||||
dfcaverns_sugar - derived from farming
|
||||
|
||||
dfcaverns_spore_tree_spores, dfcaverns_cave_wheat_seed, dfcaverns_pig_tail_seed - all derived from farming wheat seed
|
||||
|
@ -267,7 +267,7 @@ minetest.register_abm{
|
||||
size = 10,
|
||||
collisiondetection = false,
|
||||
vertical = false,
|
||||
texture = "farming_wheat_seed.png",
|
||||
texture = "dfcaverns_spore_tree_spores.png",
|
||||
})
|
||||
|
||||
end,
|
||||
|
Loading…
x
Reference in New Issue
Block a user