mirror of
https://github.com/minetest-mods/ropes.git
synced 2025-02-16 10:02:22 +01:00
I did a bunch of work enhancing the rope blocks in this. I gave them a nodebox model, limited the length the rope will extend to, allowed blocks with rope of varying length to be crafted, and fixed a couple of problems with ropes - namely that removing the block wouldn't necessarily remove the whole rope (now there's a "rope top" that eats its way down to ensure the whole rope is removed) and that a rope couldn't be cut once it was in place. I also added a rope ladder variant, and made it possible to craft ropes using cotton as well as vines. I may have broken the vines part of this mod in the process, I'll do further testing and code cleanup soon.
21 lines
587 B
Lua
21 lines
587 B
Lua
vines = {
|
|
name = 'vines',
|
|
recipes = {}
|
|
}
|
|
|
|
local enableVines = true
|
|
|
|
if enableVines then
|
|
dofile( minetest.get_modpath( vines.name ) .. "/functions.lua" )
|
|
end
|
|
dofile( minetest.get_modpath( vines.name ) .. "/aliases.lua" )
|
|
dofile( minetest.get_modpath( vines.name ) .. "/crafts.lua" )
|
|
dofile( minetest.get_modpath( vines.name ) .. "/ropeboxes.lua" )
|
|
dofile( minetest.get_modpath( vines.name ) .. "/ladder.lua" )
|
|
dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" )
|
|
if enableVines then
|
|
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
|
|
end
|
|
|
|
print("[Vines] Loaded!")
|