minetest-mods / woodcutting

GNU Lesser General Public License v3.0
7 stars 8 forks source link

Add setting to set wear limit #3

Closed coil0 closed 5 years ago

coil0 commented 5 years ago

When tool wear is higher than the limit, this stops digging so the tool can be repaired. Nodes are removed from the list one at a time so that it is still possible to switch to a different tool.

This can be disabled by setting the limit to 65535. The default limit is taken from toolranks.

bell07 commented 5 years ago

Nice feature. But I do not like it by default. Please set the default to 65535, then I merge the request.

coil0 commented 5 years ago

Done. Alternatively, it could check if a repair mod is installed and, if so, check dig params to see if digging the next tree node would break the tool. If you prefer that instead, I can update the PR again. There’s hardly a point in risking breaking a repairable tool to dig a single extra node.

bell07 commented 5 years ago

The manual parameter is ok. I use the toolranks mod too. The mod should allow to play with toolranks and wearing off. The woodcutting have already the reputation to be a "cheater" mod. But that is not the idea. The basic idea was to prevent floating trees. Behaviour should as you dig manually, but you do not need to reach tree node. So as less cheating as possible ... With stop wearing the mod is again more "cheating"