make endermen not teleport everytime when hitted

This commit is contained in:
AFCMS 2021-04-02 15:04:21 +02:00
parent 0db47dbf02
commit ca01b3641b

View File

@ -534,7 +534,9 @@ 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)
end
self.attack=hitter self.attack=hitter
self.state="attack" self.state="attack"
--end --end