Version 0.9 download
Licence LGPLv2 or any later
Source code: https://framagit.org/karamel/natural_slopes
- Default to get a working set (you may just want to declare yours)
- poschangelib to enable update by stepping on nodes
This mod adds some stair-like nodes from soft ground nodes (sand, dirt, gravel...) that may change shape with time.
The aim of this mod is to make a visual improvement on the world with more curves and smooth movement not to jump on every little height (yes, mobs happen to try to climb on trees sometime).
It is also part of a larger project that aims to bring life to the environment from inanimate things, without turning them into evil unfriendly mobs.
Why isn't it Yet an other slope mod
I've looked at Moreblocks (viewtopic.php?f=11&t=509), Simply slopes (viewtopic.php?f=11&t=13555) and Erosion (viewtopic.php?f=11&t=15806) but none of them addressed my issues. And well: http://www.commitstrip.com/2017/03/22/one-more/ (that was a way to start modding)
This mod is not about adding some new nodes for slopes but about the way they are generated and handled. The main goal is not to be able to craft slopes, but for them to be made automatically in a sensible way. In fact it's more an terrain shape management mod than a slope mod. I try to design it for other materials or mods to be easily extended with the features provided (but I don't know yet on which side a mod should be aware of the other mods).
Also slopes (like stairs and slabs) introduce "half-nodes" (well, half-filled-nodes but it's too long), which I think is bringing a lot of issues for placing nodes, movement etc. In fact, would the player have been 3 or 4 node high and could walk a 1 block height I may not have written this mod at all because the world unit would have been small enough for half-nodes to even exist. So, the slopes are not considered half-nodes but full nodes that can be climbed. I never played Minecraft or any other game like this one so it may be something strange with that reference but I haven't and I don't want to recreate Minecratft anyway.
So a slope node is considered containing the same amount of material than a full block (that is: 1 unit). Full falling nodes can be replaced by the slope according to their surroundings. When digging, a full block can be made out of a slope 1:1. Also when a slope is surrounded, it get back it's full block shape. Nothing is ever lost nor created when the shape is updated.
Making a slope
When there are room around the edge of a soft node, it can turn into a slope, when you place it, walk on it or just watch it.
By surrounding a block, leaving it alone or placing something on top of it, a slope will go back to its full block shape. It means isolated blocks doesn't degradate (remember the full-block unit?) and placing blocks around a slope will update its shape.
- Straight slope, inner corner and outer corner shapes (0.1), slab/pike (0.6)
- Smooth or cubic rendering (0.2) (smooth removed in 0.7, reenabled in 0.8)
- Single-function-call to enable the sloppy behavior on a material (0.1), enhanced texture description (0.7)
- Dirt, Desert/Silver/Default sand and Gravel slopes (0.1), more Minetest Game nodes (0.7)
- Shape changing by time (0.1) and by walking over (0.2)
- Trigger a good amount of shape update on generation (0.3) when the world is initially generated, it may be a little slow. Can be configured in advanced settings (0.4)
- Trigger shape update on digging and placing, recipes were removed and digging always gives the full node (0.5).
- /updshape chat command to update shape of the block on which the player is standing (requires server privilege)
(0.2) (was /erode in 0.1)
- Advanced settings (0.2) change rendering mode, tweak/disable update on time, disable update on walk
This mod was inspired by the sedimentology mod (viewtopic.php?f=11&t=11028) and those features fit well to my liking along this mod. It may be included later in a world live-shaping modpack.