Recreate destroyed translocators...

since mobs doesn't check for protection. Sooo many ways this could go
wrong.
This commit is contained in:
Duane 2016-07-04 08:57:24 -05:00
parent 419fc2f583
commit fcee06b6e1
3 changed files with 56 additions and 14 deletions

View file

@ -551,7 +551,7 @@ if minetest.registered_entities["mobs_monster:spider"] then
end
fun_caves.climb(self)
fun_caves.search_replace(self.object:getpos(), 100, {"air"}, "mobs:cobweb")
fun_caves.search_replace(self.object:getpos(), 30, {"air"}, "mobs:cobweb")
fun_caves.surface_damage(self)
end
@ -593,16 +593,6 @@ if minetest.registered_entities["mobs_monster:spider"] then
mobs:register_spawn("fun_caves:tarantula", {"default:desert_sand", "default:dirt_with_dry_grass"}, 99, 0, 3000, 2, 31000)
mobs:register_egg("fun_caves:tarantula", "Tarantula", "mobs_cobweb.png", 1)
minetest.register_abm({
nodenames = {"mobs:cobweb"},
interval = 500,
chance = 50,
action = function(pos, node)
minetest.set_node(pos, {name = "air"})
end
})
end
if minetest.registered_entities["mobs_monster:sand_monster"] then