Add Minauros and zombies (only there).
This commit is contained in:
parent
d22195be27
commit
10bb057f61
19 changed files with 5781 additions and 56 deletions
6
abms.lua
6
abms.lua
|
@ -107,6 +107,12 @@ minetest.register_globalstep(function(dtime)
|
|||
player:set_hp(player:get_hp() - 1)
|
||||
end
|
||||
|
||||
-- Environmental damage from surfaces/hunger
|
||||
local counts = find_nodes_in_area(minp, maxp, {"group:poison"})
|
||||
if #counts > 1 then
|
||||
player:set_hp(player:get_hp() - 1)
|
||||
end
|
||||
|
||||
if dps_count % cold_delay == 0 then
|
||||
counts = find_nodes_in_area(minp, maxp, {"group:surface_cold"})
|
||||
if #counts > 1 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue