[Mod] Soft Leaves [0.2.0] [soft_leaves]

Do you use this mod?

Yes, I like it.
5
100%
No, I'm not interested.
0
No votes
 
Total votes : 5

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

[Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Sat May 19, 2018 12:26

Image
Allows to walk through and to climb on leaves.

Version: 0.2.0
Source code's license: EUPL v1.2 or later.

Dependencies: default (found in Minetest Game)


Downloads:
Archives: .zip .tar.gz
Source code: GitHub


Installation

Unzip the archive, rename the folder to soft_leaves and place it in
../minetest/mods/

GNU+Linux: If you use a system-wide installation place it in
~/.minetest/mods/

If you only want this to be used in a single world, place the folder in
../minetest/worlds/world_name/worldmods/

For further information or help see:
http://wiki.minetest.net/wiki/Installing_Mods
Attachments
screenshot.png
(15.73 KiB) Not downloaded yet
Last edited by Hamlet on Fri Nov 08, 2019 14:08, edited 6 times in total.
 

User avatar
texmex
Member
 
Posts: 1614
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Soft Leaves [0.1.0] [soft_leaves]

by texmex » Sat Jun 02, 2018 21:37

Nice feature.

Tip: If you loop through registered nodes for the group ”leaves” you won’t have to repeat yourself in your code.
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.1.0] [soft_leaves]

by Hamlet » Sun Jun 03, 2018 18:39

texmex wrote:Nice feature.

Tip: If you loop through registered nodes for the group ”leaves” you won’t have to repeat yourself in your code.


Thank you; any hints on how to do that?
I've checked the lua_api. but I didn't understood how to scan minetest.registered_nodes for the leaves group.
I was about to do something like:

Code: Select all
for i = 1, #minetest.registered_nodes do
   if (minetest.registered_nodes[i].groups == leaves) then
      ...
   end
end
 

User avatar
texmex
Member
 
Posts: 1614
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Wed Oct 30, 2019 18:42

Released v0.2.0

Added:
- Global function which allows other mods to register their nodes (see api.txt).

Changed:
- License changed to EUPL v1.2
- Code entirely rewritten.
- mod.conf set to follow MT v5.x specifics.

Removed:
- Support for MT v0.4.x
 

Astrobe
Member
 
Posts: 246
Joined: Sun Apr 01, 2018 10:46
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Sat Nov 02, 2019 12:26

Astrobe wrote:TIL about EUPL. Interesting license!


Basically it is like the GPLv3, but officially and legally available in about 30 languages.

I believe that a license should be comprehensible by anyone, and that its translations should be legally valid.

Else you are simply forcing people to adhere to a contract that they don't even understand.

For example, one can use a Spanish or French translation of the GPL, but the only legal version is the English one.
As far as I know, those translations are provided as "courtesy": so if you make some mistake because you don't understand English (legalese English, moreover), it's your fault.

It reminds me of the scene where an European colonist gives a contract to a native - which of course can't even read - telling him/her to sign it with a big X.
Afterward the native discovers that he/she has just given all his/her possessions to the colonist, be it the farmland, the home, whatever.
"Legally valid, friend, here's the contract that you signed. Now be a civil person and get away."

We have made some steps forward from that era - swindling people using language as a trap - haven't we?

Here's a table of comparison between various licenses: https://choosealicense.com/appendix/
 

Nordal
Member
 
Posts: 66
Joined: Mon Jul 30, 2018 15:46
Location: Germany
GitHub: Nordall

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Nordal » Tue Nov 19, 2019 06:10

I like this very much. Comes in handy when riding on horse! Thank you!
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Tue Nov 19, 2019 16:07

Nordal wrote:I like this very much. Comes in handy when riding on horse! Thank you!


:) You're welcome!
 

ThorfinnS
Member
 
Posts: 200
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by ThorfinnS » Tue Nov 19, 2019 17:57

IMO, they are even more useful in early mining shafts to get iron, before you have ropes or whatever else you are using.
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Tue Nov 19, 2019 19:26

ThorfinnS wrote:IMO, they are even more useful in early mining shafts to get iron, before you have ropes or whatever else you are using.


They're indeed useful as temporary ladders.
This is another feature that I've ported from Voxelands: I could not really stand not being able to walk in dense woods or climbing on mountains without bonking my head at every step, or 'ruining' forests by tunneling into them.

Tarzan mod!
 

User avatar
texmex
Member
 
Posts: 1614
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by texmex » Tue Nov 19, 2019 19:33

I also like it but it’s too exploitable for my needs. The horse exploit I don’t know how to mitigate but I don’t have tamables in my game anyway. The cheap ladder exploit can be solved by tree leave nodes having other drops than themselves: a similar node with different characteristics.
 

ThorfinnS
Member
 
Posts: 200
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by ThorfinnS » Tue Nov 19, 2019 20:19

I guess I'm not understanding the problem. It's easy to chop enough wood to do that with ladders. Just one apple tree is almost enough to get you down to the iron. A little over a dozen gets you down to diamond. Only real advantage leaves have there is you can nerdpole with them. Even with bonemeal, compost, basic_materials and techpack, most players on my servers end up with chests full of leaves. There just aren't enough uses for leaves relative to the need for wood. And that's AFTER rebalancing the above mods to cut the output to no more than half, some to a quarter or less.
 

User avatar
Melkor
Member
 
Posts: 328
Joined: Sat Sep 24, 2011 01:03
Location: Underground
 

User avatar
texmex
Member
 
Posts: 1614
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by texmex » Wed Nov 20, 2019 08:48

@Thorfinn In my case, trunks aren’t choppable by hand so wood comes more expensively.
 

ThorfinnS
Member
 
Posts: 200
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by ThorfinnS » Wed Nov 20, 2019 19:02

texmex wrote:@Thorfinn In my case, trunks aren’t choppable by hand so wood comes more expensively.
OK. While they change the dynamic some, I didn't find it was overpowered, by any means. For example, any mob that jumps goes right up the nerdpole, so no using (just) leaves to get out of range. Slimes become positively deadly if you typically spend the night on a leaf nerdpole. And you can't sneak to place other leaves at the top to make a bigger platform, because sneak is the same key to go back down the nerdpole.

[EDIT]
Incidentally, how do you address that getting the first wood issue? Basic_houses solves it by just giving you the logs or wood (if you find a chest in a log or wood house), there's one mod out there that does so by letting you harvest sticks and pebbles, moretrees (or something) does it by letting you convert leaves to twigs to sticks to wood, there's something that lets you convert saplings to twigs, you could use TNT, I guess... The gathering sticks method is the one that appeals to me most, if I were to include a hard wood mod, but I can't find it anymore, and I don't feel like recreating it...
[/EDIT]

[EDIT2]
Hmmm, maybe if some fraction of leaf nodes actually dropped sticks (branches). Little more realistic, AND reduces the massive numbers of leaves that otherwise get collected...
[/EDIT2]
 

User avatar
Hamlet
Member
 
Posts: 655
Joined: Sat Jul 29, 2017 21:09
Location: Lombardy, Italy
GitHub: h4ml3t
IRC: H4mlet

Re: [Mod] Soft Leaves [0.2.0] [soft_leaves]

by Hamlet » Wed Nov 20, 2019 19:57

Melkor wrote:can the leaves absorb the impact of a fall? like falling in water


Since they're acting as ladders, I guess that they should do it. As far as I know, if you fall in a shaft and some ladder nodes are placed at its bottom, it acts as 'brake'.
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests