This change includes some extensive rewriting of the shared underlying
functions as well as the cosmetic changes. Rope destruction should
happen instantly down its entire length now. Rope boxes themselves are
now "climbable", making it easier to transfer from one rope to another.
There's also a new user setting for limiting the number of rope box
types available to the player.
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