gsmanners wrote:I'm not too concerned about most mobs, but the sheep are getting a little too thick. I think this is because the function for limiting spawns does not survive server resets. The entities, however, will persist between resets. This may not be a huge deal for a multiplayer server, but this could easily give you thousands of mobs if you play in singleplayer mode for a while.
Maybe just reset the sheep lifetime if there's a player nearby. That might work out better than checking for groups.
22:23:04: ERROR[main]: ServerError: ...ome/genma/.minetest/mods/minetest/creatures/init.lua:57: attempt to perform arithmetic on field '?' (a nil value)
22:23:04: ERROR[main]: stack traceback:
22:23:04: ERROR[main]: ...ome/genma/.minetest/mods/minetest/creatures/init.lua:57: in function 'func'
if obj then
creatures.spawned[m_name] = creatures.spawned[m_name] + 1
minetest.log("action", "Spawned "..mob.." at ("..pos.x..","..pos.y..","..pos.z..")")
end
03:01:26: ERROR[main]: ERROR: An unhandled exception occurred: /home/minetest/minetest-s2/bin/../mods/creatures/init.lua:57: attempt to perform arithmetic on a nil value
14:28:09: ERROR[main]: ERROR: An unhandled exception occurred: /home/minetest/minetest-s2/bin/../mods/creatures/init.lua:57: attempt to perform arithmetic on a nil value
Alt. Tester wrote:Hey BlockMen I am making a game mode and was wondering how do, I make the Zombies don't die when it come day.
Since I am making a Horror game. well I got loads of ideas for it. but all I can say the theme of the, place is B&W.
No color at all. Just Black and White. same for the player skin. And I liked have zombies so I was wondering how I make them can spawn in day and don't die.
BlockMen wrote:Ghosts only spawn at night-time and they don't spawn underground. They are flying in the world and attack you aswell if they notice you.
Ghosts have 15 HP and don't drop any items atm (might be changed if i have an idea what they could drop; suggestions welcome).
...
local s2_drop = "mobs:meat_raw"
if self.object:get_hp() < 1 then
creatures.drop(my_pos, {{name=s2_drop, count=math.random(0,1)}}, dir)
JPRuehmann wrote:Hello
Since Yesterday creatures is not working anymore.
If I only enable it in a normal minetest game I get the following screen.
Pink screen and only one inventory Field. I am using the latest Version of the Mod and of Minetest (github) to.
There is no error message for it in the Terminal or the Log File.
How can I get it back to work?
Thanks,
JPR
BlockMen wrote:Hello everyone,
this mod adds 2 hostile and 1 friendly mob to Minetest, so far zombies, ghosts and sheeps.
Ragnar wrote:BlockMen wrote:Hello everyone,
this mod adds 2 hostile and 1 friendly mob to Minetest, so far zombies, ghosts and sheeps.
Sheep*
shaheerziya wrote:How about ghosts having a chance of 1/32 of dropping a gold nugget
??
Users browsing this forum: No registered users and 13 guests