[Mod] Hard Trees Redo [0.2.0] [hard_trees_redo]

Do you use this mod?

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

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

[Mod] Hard Trees Redo [0.2.0] [hard_trees_redo]

by Hamlet » Mon Apr 23, 2018 12:18

Prevents digging trees by punching them.

Version: 0.2.0
Source code's license: EUPL v1.2 or later.
Textures and locale files' license: CC BY-SA 4.0 International or later.

Dependencies: default, farming (found in Minetest Game)
Supported: bonemeal, intllib, fallen_nodes, fallen_trees

Description:
Leaf nodes will drop sticks, dirt/cobble/stone/etc. nodes will drop rocks.
Wooden axe and wooden pick will be removed.
Stone tools can be crafted using sticks and rocks (or flints).
Rocks can be used to craft cobblestone nodes, recipe:

R = Rock

RRR
RRR
RRR

9 rocks give 1 cobblestone node.

These game mechanics have been ported from Voxelands.


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


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

If you only want this to be used in a single world, place it in
../minetest/worlds/WORLD_NAME/worldmods/

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

For further information or help see:
https://wiki.minetest.net/Help:Installing_Mods
Last edited by Hamlet on Sat Nov 09, 2019 15:34, edited 3 times in total.
 

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

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

Re: [Mod] Hard Trees Redo [0.1.1] [hard_trees_redo]

by ThorfinnS » Fri Nov 08, 2019 15:33

I'm not sure how to code it, but until you figure out how to add drops to nodes instead of overriding them, you might want to make a note that this is incompatible with TenPlus1's bonemeal. Only mention it because it seems that's a really popular mod in the server list I looked at. And it won't work with ours.

Someone added pebbles and sticks just lying on the ground (nature or forest_litter or something) that I always meant to port over with oddly_breakable_by_hand. That's a possible answer to making it compatible, if someone remembers what that was called.
 

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

Re: [Mod] Hard Trees Redo [0.1.1] [hard_trees_redo]

by Hamlet » Fri Nov 08, 2019 20:02

ThorfinnS wrote:I'm not sure how to code it, but until you figure out how to add drops to nodes instead of overriding them, you might want to make a note that this is incompatible with TenPlus1's bonemeal. Only mention it because it seems that's a really popular mod in the server list I looked at. And it won't work with ours.


As far as I know, once that you have defined and registered a node the only way to modify its behavior is to override it.

E.g.:
I register a stone that when dug does not drop anything, the node's definition will not have the field
Code: Select all
drops = {}

Bob decides that it should drop dollars, thus it adds the field
Code: Select all
drops = {"bob_mod:dollar"}

by using an overrider.

Anyway, thanks for the heads up: the conflicting code is here for BoneMeal and here for HardTreesRedo.

I will add support for BoneMeal's drop, maybe someone growing forests underground might use it.


ThorfinnS wrote:Someone added pebbles and sticks just lying on the ground (nature or forest_litter or something) that I always meant to port over with oddly_breakable_by_hand. That's a possible answer to making it compatible, if someone remembers what that was called.


Uh I can't remember either. I saw that in RealTest, but to be honest I don't like the look of it - I mean, it's realistic to find rocks laying on the ground (I'm thinking about rivers' sides, especially) but for some reason I can't get to like them.
 

User avatar
TenPlus1
Member
 
Posts: 2628
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Hard Trees Redo [0.1.1] [hard_trees_redo]

by TenPlus1 » Sat Nov 09, 2019 11:57

Thorfinss: here's a little code snippet to insert item drops into a current node without overriding the existing ones:

viewtopic.php?f=9&t=9741&p=361200#p361200
 

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

Re: [Mod] Hard Trees Redo [0.2.0] [hard_trees_redo]

by Hamlet » Sat Nov 09, 2019 15:36

Released v0.2.0

Added:
- Support for Minetest Game v5.x new nodes.
- Support for Bonemeal.

Changed:
- License changed to EUPL v1.2.
- mod.conf set to follow Minetest v5.x specifics.
- Textures have been optimized with optipng.
- Code cleaning.

Removed:
- Support for Minetest Game v0.4.x
- ../doc/
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests