@red There is no package, you'll have to do it yourself. Here is a very simple variant that will only place ramps during worldgen, you will not be able to place it again afterwards:
1. Get the worldgen-utils and utils mods and pace them in the minetest_game/mods directory.
2. Create a new directory in minetest_game/mods named "mtg_ramps".
3. Create in that directory the files "init.lua" and "depends.txt".
Now to the content of said files, depends.txt:
And init.lua:
Code: Select all
local function register_ramps(lookup_table, node_name)
return tableutil.merge(
lookup_table,
ramputil.register_ramps_for_node(
"default:" .. node_name,
"mtg_ramps:" .. node_name,
true,
6
)
)
end
local ramped_nodes = {}
ramped_nodes = register_ramps(ramped_nodes, "desert_sand")
ramped_nodes = register_ramps(ramped_nodes, "dirt")
ramped_nodes = register_ramps(ramped_nodes, "dirt_with_grass")
ramped_nodes = register_ramps(ramped_nodes, "dirt_with_snow")
ramped_nodes = register_ramps(ramped_nodes, "ice")
ramped_nodes = register_ramps(ramped_nodes, "sand")
ramped_nodes = register_ramps(ramped_nodes, "snow")
ramped_nodes = register_ramps(ramped_nodes, "stone")
minetest.register_on_generated(function(minp, maxp, seed)
local manipulator = MapManipulator:new()
rampgen.run(manipulator, minp, maxp, ramped_nodes)
manipulator:set_data()
end)
You'd need to register a callback for the place and dig functions if you want that the ramps are automatically created every time you place or dig a node. I'm not sure how that is possible, given that those nodes are already registered, I'd need to look into it. Also this method has the downside that the textures are kinda distorted.