forked from VoxeLibre/VoxeLibre
[extra_mobs] Remove chat debug messages
This commit is contained in:
parent
807126c517
commit
748087ac3f
|
@ -71,7 +71,6 @@ local fox = {
|
||||||
runaway = true,
|
runaway = true,
|
||||||
on_spawn = function(self)
|
on_spawn = function(self)
|
||||||
if minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:snow") ~= nil or minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:dirt_with_grass_snow") ~= nil then
|
if minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:snow") ~= nil or minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:dirt_with_grass_snow") ~= nil then
|
||||||
minetest.chat_send_all("true")
|
|
||||||
self.object:set_properties({textures={"extra_mobs_artic_fox.png", "extra_mobs_trans.png"}})
|
self.object:set_properties({textures={"extra_mobs_artic_fox.png", "extra_mobs_trans.png"}})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -9,9 +9,6 @@ minetest.register_entity("extra_mobs:hb_eye", {
|
||||||
visual_size = {x=1, y=1},
|
visual_size = {x=1, y=1},
|
||||||
on_activate = function(self)
|
on_activate = function(self)
|
||||||
for _,hb in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 1)) do
|
for _,hb in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 1)) do
|
||||||
if not hb:is_player() then
|
|
||||||
minetest.chat_send_all(hb:get_luaentity().name)
|
|
||||||
end
|
|
||||||
if not hb:is_player() and hb:get_luaentity().name == "extra_mobs:herobrine" then
|
if not hb:is_player() and hb:get_luaentity().name == "extra_mobs:herobrine" then
|
||||||
self.object:set_attach(hb, "Head", {x=0,y=-13.5,z=0}, {x=0,y=0,z=0})
|
self.object:set_attach(hb, "Head", {x=0,y=-13.5,z=0}, {x=0,y=0,z=0})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue