Mods / Soil Erosion

Tags:
Tweak
Author:
Aperature
Side:
Both
Created:
Jan 15th at 3:50 AM
Last modified:
Jan 15th at 5:59 PM
Downloads:
572
Latest release (for Vintage Story 1.4.4-dev.2 - 1.21.6, outdated):
Simple Erosion V1.0.2.zip  1-click install

Will this destroy normal terrain? Nope, it should usually not do anything to normal terrain except for very steep ledges which would make sense to erode in heavy rain!

Will this hurt performance? Not really, it is quite speedy to run at the cost of not being super fast to catch all instances of bad soil placement

Do I need normal instability enabled? Nope, it works on its own!

See the high resolution UE5 renders of how the system works to see what exactly it does to soil things (I spared no expense)

 

Mechanics:
Any block with the "Soil", "Gravel", "Sand" material tag can now be eroded. If rain is above 0.7 (max ingame is 1), it will run raycasts in the rain direction from above and hit blocks. If one of these blocks is found to be adjacent to (including corners!) a 3 block tall drop exposed to rain, or is hovering, it will erode. 
This can be blocked by covering the exposed soil with things, including plants! If a roof is 2 blocks thick it wont erode through the middle, though the edges if steep enough can still do so. 
Wind direction matters! Rain can hit the side of blocks and erode them if they match the conditions outlined above.

Avoidance:
Avoid thin soil roofs, make them at least 2 blocks thick
Avoid unstable stuff on tall walls, and if you plan to do so, be sure they have cover from above (even plants will do! their roots help stop erosion), but look out for the wind direction and be sure to cover up otherwise at risk blocks from the side to ensure they dont fall.
If you must make a dirt house, make it with sloped walls and a 2 thick roof, making hobbit mounds will prevent erosion!

 



Special thanks to: like an hour of programming lol

Note: My upcoming Intense Weather:tm: mod will have this built in, doubling up will make the effect 2x as strong lmao

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.2 simpleerosion
1.4.4-dev.2 - 1.21.6
489 Jan 15th at 5:59 PM Simple Erosion V1.0.2.zip 1-click install

Fixed errors and a subsequent backout on world generation due to uninitialized terrain.

1.0.1 simpleerosion
1.4.4-dev.2 - 1.21.6
57 Jan 15th at 5:16 AM Simple Erosion V1.0.1.zip 1-click install

Capped max players per cycle to 50 (it will iterate through all players, so all players will experience erosion, just not as frequently). Cost on my pc is 2-3 ms every 1200 ms if all players are experiencing heavy rain

1.0.0 simpleerosion
1.4.4-dev.2 - 1.21.6
26 Jan 15th at 3:51 AM Empty Simple Erosion V1.0.0.zip 1-click install

13 Comments (oldest first | newest first) (threaded | flat)

Bebismannen, 4 days ago

Think this mod is kaput as of now; I'm unable to play with it enabled, even just by itself.

No errors, just always gets stuck after '[Notification] Finished fully loading sounds (async)' (client-main).

Awesome mod, though.

Wrythley, Apr 4th at 11:53 AM

Mudbricks erode, I feel like they should be an exception.

Aperature , Mar 30th at 7:14 PM

LuaC Damn, Im busy in uni at the moment but I can try to do a verification check first, I had a similar issue that caused it to crash the game if you tried to load a new world in with the mod early on. The mechanism is the same, its reading partially loaded data in that case and queuing it all to fall.. Ill let you know when i get around to fixing it

 

LuaC, Feb 27th at 12:47 AM

There appears to be a very rare bug that can occur during loading into the world, if it happens to be raining and the rain tick happens (causing soil to check for how stable it is and whatever, unsure how the mod truly works but I assume it's something like that), before any chunks have loaded, any soil blocks bordering on the chunk fail the check causing the soil to erode, causing large square shaped valleys to form. I'm not exactly sure how this could be fixed but it for sure scared my server when it happened at our base lmao

Aperature , Jan 18th at 5:54 AM

Darcy it should probably work with it technically, but it will not respect Sticky Dirt's custom stability mechanics. 

Darcy, Jan 17th at 9:11 PM

Do you know if this works okay with Sticky Dirt?

Aperature , Jan 16th at 4:49 PM (modified Jan 16th at 4:50 PM)

EnderMelody It makes them become unstable and fall. There IS a fallback, where if a block tasked for destabilization is chiseled, it will break it (and drop the item!) instead. This prevents a crash. However, this is a rare scenario as most people dont chisel dirt and the like, and when they do, they usually dont stick it up on the top of ledges and similar.

EnderMelody, Jan 16th at 5:10 AM

from the image it seems like erosion is just having the block become unstable and fall? dont want to just delete blocks from the world so want to confirm

Aperature , Jan 15th at 11:05 PM

Caoimhe The plants growing on soil (like the grass you can cut) ALREADY offers protection except when rain comes from the sides. To maintain performance, im checking enumerator materials, if I want to distinguish between packed dirt and not packed dirt, it would take 20-30x the cost for that part of the check. I can do soil, sand, gravel probabilities actually, but not ones for different soils without incurring more costs!

Caoimhe, Jan 15th at 8:58 PM

Love the idea, but I would prefer if there was some way by which the erosion resistance of a block could matter. Sand is much easier to erode than packed dirt, and soil with grass or plants growing on it is very stable.

Aperature , Jan 15th at 6:00 PM

Pushed a fix on world generation of all things! It got mad when terrain wasn't properly loaded next to it, V 1.0.2 is out now

finipops, Jan 15th at 1:08 PM

I'm excited to see the future of this mod :)

HariSeldon, Jan 15th at 9:51 AM

Interesting idea, I'm always looking for incentives to justify using ever-better materials in construction, as things stand in-game now there are little reasons to abandon dirt in favour of wood or stone, only aesthetics.