[Mod] Soft Leaves [0.1.0] [soft_leaves]

User avatar
Hamlet
Member
 
Posts: 455
Joined: Sat Jul 29, 2017 21:09
Location: Italia
IRC: H4mlet

[Mod] Soft Leaves [0.1.0] [soft_leaves]

by Hamlet » Sat May 19, 2018 12:26

Turns leaves to phantom, climbable.

Version: 0.1.0
Source code's license: GPLv3

Dependencies: default (found in Minetest Game)

Downloads:

Archives: .zip .tar.gz
Source: https://notabug.org/Hamlet/soft_leaves

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
Last edited by Hamlet on Wed Jul 18, 2018 15:23, edited 3 times in total.
 

User avatar
texmex
Member
 
Posts: 975
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: 455
Joined: Sat Jul 29, 2017 21:09
Location: Italia
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: 975
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 7 guests