mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-04 05:11:27 +02:00
make endermen not teleport everytime when hitted
This commit is contained in:
@ -534,9 +534,11 @@ mobs:register_mob("mobs_mc:enderman", {
|
|||||||
--if (minetest.get_timeofday() * 24000) > 5001 and (minetest.get_timeofday() * 24000) < 19000 then
|
--if (minetest.get_timeofday() * 24000) > 5001 and (minetest.get_timeofday() * 24000) < 19000 then
|
||||||
-- self:teleport(nil)
|
-- self:teleport(nil)
|
||||||
--else
|
--else
|
||||||
|
if pr:next(1, 8) == 8 then --FIXME: real mc rate
|
||||||
self:teleport(hitter)
|
self:teleport(hitter)
|
||||||
self.attack=hitter
|
end
|
||||||
self.state="attack"
|
self.attack=hitter
|
||||||
|
self.state="attack"
|
||||||
--end
|
--end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Reference in New Issue
Block a user