minetest.register_on_dignode(function (pos, node, player)
if node.name == 'vines:rope_block' then
local p = {x=pos.x, y=pos.y-1, z=pos.z}
local n = minetest.env:get_node(p)
while n.name == 'vines:rope' do
minetest.env:remove_node(p)
p = {x=p.x, y=p.y-1, z=p.z}
n = minetest.env:get_node(p)
end
if n.name == 'vines:rope_end' then
minetest.env:remove_node(p)
end
end
end)
minetest.register_on_dignode(function (pos, node, player)
if node.name == 'vines:rope_block' then
local p = {x=pos.x, y=pos.y-1, z=pos.z}
local n = minetest.env:get_node(p)
print(n.name)
if n.name == 'vines:rope' then
while n.name ~= 'vines:rope_end' do
print(n.name) <----- I added this line, it caused it to spew out some unknown/invalid node name
minetest.env:remove_node(p)
p = {x=p.x, y=p.y-1, z=p.z}
n = minetest.env:get_node(p)
end
end
if n.name == 'vines:rope_end' then
minetest.env:remove_node(p)
end
end
end)
cornernote wrote:Bas080:
My question is, why do you need to check if it's ~= rope_end. Why not just check if its == rope, if it is then remove it.
Inocudom wrote:Will there be any further updates to this mod?
jojoa1997 wrote:allow ropes to go horizontal like a zip line.
Bas080 wrote:VanessaE, so you do not use a leave abm. I'll do the same in the update! That does mean that you'll have to spwan them in the trees mod. I'll make sure to add more types of vines.
- Thick vine/root that grows to the ground
- Hanging vines (already have that but could use texture update)
- Side hanging vines. Vines that hang on the side of leaves. (similar texture as the plantlike vines.
All of them being climbablejojoa1997 wrote:allow ropes to go horizontal like a zip line.
Not just vertical but horizontal. I'll think about it.
Spots wrote:if you do the horizontal wouldn't you also have to come up with a way to move on them like hand over hand or sliding
maybe you could make it shoot across an expanse and then form a rope bridge kind of like these
https://www.google.com/search?q=rope+bridge&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&um=1&ie=UTF-8&hl=en&tbm=isch&source=og&sa=N&tab=wi&ei=0Z_-UNiXMYim9gTd44GYBw&biw=1920&bih=916&sei=15_-UJ6ZAob69QTM3ICQCQ#imgrc=JyVdzGDQN8Is-M%3A%3B6ylpfiKraEDJvM%3Bhttp%253A%252F%252Fwww.psgtech.edu%252Fncc%252Fimages%252FWings%252FEP%252FBridges%252FRope%252520Bridge01.jpg%3Bhttp%253A%252F%252Fwww.psgtech.edu%252Fncc%252F4wEP.html%3B400%3B400
maybe crafting would be top row : empty / middle row : rope box , planks , rope box / bottom row : empty
jojoa1997 wrote:i am wondering if you understand what i am saying. place a rope begin box, walk to other mountain and place an end box, then the rope appears
ok goodBas080 wrote:jojoa1997 wrote:i am wondering if you understand what i am saying. place a rope begin box, walk to other mountain and place an end box, then the rope appears
If I didn't understand it the first time i sure do now. Btw I understood you the first time.
14:11:05: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...home/minetest/.minetest/mods/minetest/vines/init.lua:68: bad argument #-2 to 'add_node' (string expected, go
t nil)
01:22:28: ERROR[main]: ERROR: An unhandled exception occurred: .../user/.minetest/mods/animals_modpack/mobf/fighting.lua:1315: attempt to index field 'healdb' (a nil value)
01:22:28: ERROR[main]: stack traceback:
01:22:28: ERROR[main]: .../user/.minetest/mods/animals_modpack/mobf/fighting.lua:1315: in function 'callback'
01:22:28: ERROR[main]: /home/user/.minetest/mods/animals_modpack/mobf/mobf.lua:855: in function </home/user/.minetest/mods/animals_modpack/mobf/mobf.lua:837>
01:22:28: ERROR[main]: /usr/share/games/minetest/builtin/game/register.lua:348: in function </usr/share/games/minetest/builtin/game/register.lua:336>
Users browsing this forum: No registered users and 41 guests