The first one happens because `remove_node` is called
directly, calling `remove_node` for the vine below,
calling `remove_node` for the vine below, calling...
The second one happens because `get_item_group`
returns 0 for groups not set, and 0 is a truthy
value in Lua, so the code always removes the bottom
node regardless of its group rating. This interacted
funnily with doors wanting to remove their top node,
while vines wanted to remove their bottom nodes.
I moved the rope length settings to the main init.lua to make them
easier to find, and reduced standard rope length to 50 meters (5x max is
now 250m). Also set ladders to sunlight propagates, and fixed some minor
bugs in the code.
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.
- Easily lets vines spawn on nodes that have the unique vine group name
- Updated README.md that explains the groups spawning feature.
- Made groups variable local to the registration function and not part of the
namespace
- API update. No longer uses ABM's except for the ones that are used in
plants_lib ( performance increase )
- New jungle vine that spawns on jungle trunks/tree
- Code reordering, file renaming an overall more structured and DRY-er approach.
Conflicts:
README.md
- Defines biome in the vines_register function. Thus spawning.lua can be
removed.
- Vines destroy when a nearby( 3x3 ) leave is dug. They do not drop. To gather
vines one still has to use the shears.
- Soft depends on moretrees. Allows the overriding of the leave nodes. This is
required for removing th vines when the leaves destruct.
- Registered a new vine named "vines:jungle" Spawns on jungle tree trunks.
Either on the moretrees jungles and the default jungletree nodes.
- Textures for the jungle vines.
A big code update. Some features have changes slightly. The goal of this update
is to improve performance on servers. This is achieved by removing ABMs and
using on_timers instead. The amount of times that on_timer is used is also
minimized. Other features include.
- vine register function that allows the registering of side and bottom vines
- Removing vines remove all vines beneath it.
- New vine named Roots