minetest-mods / mob-engine

Mob Engine (formely Creatures MOB-Engine) is a mod(pack) for Minetest that provides a mob engine and several creatures to the game.
13 stars 5 forks source link

MOB spawning improve #31

Open BrunoMine opened 5 years ago

BrunoMine commented 5 years ago

I'm working on it these days. If anyone has a suggestion post here, maybe I already do.

lnjX commented 5 years ago

What do you want to improve?

BrunoMine commented 5 years ago

Add a filter to check nodes near spawn point. (eg. Diamond Ore) Add method for take only nodes under air (for generating on caves) These two improvements are just for spawning MOBs while generating the world. I noticed that initially the world is empty and the MOBs appear over time, with the update I intend to spawn soon after generating the map.

tacotexmex commented 5 years ago

I want to suggest a different solution to mob spawning.

Low-frequent randomized spawning is cool to keep things interesting over a longer period of time, I guess.

But what’d be really interesting would be to spawn mobs into the world not by timers and chance but according to a noise pattern. This noise pattern can be based on the world seed so that it’s reproducable, just like the map itself. The mobs should never expire but death be permanent. The spawning process should use thematized by use of biome checking. This is cool for several reasons:

BrunoMine commented 5 years ago

The problem of spawning the MOBs only according to a noise pattern once is that all objects are deleted with the /clearobjects command, which eliminates all objects including MOBs.

BrunoMine commented 5 years ago

Use seed for MOB spawn sounds good.

tacotexmex commented 5 years ago

Then either we suggest not using /clearobjects or, better, store mob position data somewhere to respawn the same mobs and make mobs essentially survive a clearing up.

BrunoMine commented 5 years ago

I've looked at different ways of trying to do this. But it is extremely inefficient. For now we will try to soften the problems.

tacotexmex commented 5 years ago

What are the specific obstacles?

BrunoMine commented 5 years ago
BrunoMine commented 5 years ago

I believe I was able to partially solve the problem. I basically created a new spawn type:

BrunoMine commented 5 years ago

I finished making all the improvements in the generation of MOBs, now I will test a little, but I already seemed quite pleasant. Test version: My develop branch