Cuberite Forum
When nature takes over... - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: When nature takes over... (/thread-1404.html)



When nature takes over... - jimmis98 - 03-12-2014

The nature's taking over is divided in two processes (not used as a computational term).
The first process is plantation advancement, where trees randomly grow out of thin air (so we have denser forests, forest-like plains, etc).
The second process happens only to chunks that haven't been loaded for X time. Every human made construction made underground is slowly files with stone or dirt. Every construction above surface slowly disappears : block randomly vanish, turn to air. Stone, obsidian and some other block aren't affected.

What do you think? Would it be an interesting mod? Would be too difficult to make?


RE: When nature takes over... - xoft - 03-12-2014

We've already had some similar work - growing trees. Although experimental, it proved that this can be done, at least in a way.

The first one can be implemented quite well - every N ticks, pick a block on the surface (as determined by the heightmap), and if it's dirt or grass, check the surroundings; if there is a log or leaves in close proximity, place a sapling there. This way the forests will slowly grow outwards. This could actually be a rather easy plugin to make.

The second one has some definitorial problems - what is a "human made construction"? There's no such distinction in MC - there are only block types, nothing else.Then, what is an underground structure and what is an above-ground structure? If you have a large house with several floors, hardly would you call the lowest floors "underground"; but how is MCS to know the difference?


RE: When nature takes over... - jimmis98 - 03-12-2014

As I had it in mind, maybe the server would compare the to-be-altered chunk with its default-counterpart (which itself would be calculated by the world's seed). So practically the checked chunk would slowly turn back to what it was originally.
The mod would know if a block needs to be a) filled with dirt/stone, b) removed in the to-be-altered chunk if in the default-counterpart the block was empty or filled.

This is how I would go around the problem (yep, my idea is lacking...)

Well, the more I think of it, the more performance-amputating it seems to me... :/


RE: When nature takes over... - bearbin - 03-12-2014

That seems really cool, and keeping the old chunk really wouldn't be that much overhead.


RE: When nature takes over... - tigerw - 03-12-2014

How would a server deal with a scenario in which a chunk was completely dug out and a house built in the middle? I don't think it would be appropriate for dirt to fill in the 'lower floors', whatever they may be.

Perhaps it would be more practical to fill enclosed spaces with cobwebs and make cobblestone decay veerry slowly?


RE: When nature takes over... - xoft - 03-12-2014

Perhaps two separate plugins, then. The tree-growing sounds like a great idea even for regular servers, I'd like that on mine. But the decay is somewhat specific, I personally wouldn't want it on my server, so keep those two separate.

As for filling with cobwebs - this would mean that even natural caves would soon be full of them. Is that what we want? If not, how to distinguish between a natural cave (and especially mineshafts and later fortresses) and a player-built structure?


RE: When nature takes over... - jimmis98 - 03-12-2014

(03-12-2014, 06:51 PM)xoft Wrote: Perhaps two separate plugins, then. The tree-growing sounds like a great idea even for regular servers, I'd like that on mine. But the decay is somewhat specific, I personally wouldn't want it on my server, so keep those two separate.

As for filling with cobwebs - this would mean that even natural caves would soon be full of them. Is that what we want? If not, how to distinguish between a natural cave (and especially mineshafts and later fortresses) and a player-built structure?

I don't know if mine is a viable idea, but...
If the server were to keep a copy of the untouched map, it could possibly be able to compare the chunk of the used map and the chunk of the untouched one, so any difference would be user-caused. Then it would alter only that


RE: When nature takes over... - xoft - 03-12-2014

That would effectively either double the amount of RAM required (to hold the old copies) or double the CPU required (to calculate the original chunk contents by the generator); and the CPU way won't work well with maps generated outside MCS (which is what quite a lot of people do - they generate world with vanilla, then use MCS for the actual gameplay)


RE: When nature takes over... - tigerw - 03-13-2014

Cobwebs could just spread to corners and vertices, two or more stone blocks touching, so cobwebs wont leave the wall.