[Mod] TreeCapitator [treecapitator]
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
[Mod] TreeCapitator [treecapitator]
I edited Jeja's timber mod to create this mod.
There I got the name.
It works like the timber mod but it destroys the leaves and the fruits, too. Of course, the leaves won't be dropped - only saplings. Hold shift to avoid its function.
Repository: https://github.com/HybridDog/treecapitator
↑ you can only see the animation if your browser supports apng
If you got ideas or found bugs, please tell them to me.
How to install a mod?
There I got the name.
It works like the timber mod but it destroys the leaves and the fruits, too. Of course, the leaves won't be dropped - only saplings. Hold shift to avoid its function.
Repository: https://github.com/HybridDog/treecapitator
↑ you can only see the animation if your browser supports apng
If you got ideas or found bugs, please tell them to me.
How to install a mod?
- Attachments
-
- treecapitator.png (67.51 KiB) Viewed 4923 times
Last edited by Hybrid Dog on Sat Jan 04, 2025 11:28, edited 9 times in total.
-
- Member
- Posts: 81
- Joined: Mon Jan 28, 2013 12:29
- Location: España
It works well, but does not automatically gather wood.
Thanks, good mod
Thanks, good mod
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
-
- Member
- Posts: 81
- Joined: Mon Jan 28, 2013 12:29
- Location: España
Yes, within the inventory. :-)
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
-
- Member
- Posts: 81
- Joined: Mon Jan 28, 2013 12:29
- Location: España
Hybrid Dog wrote:finished.socramazibi wrote:Yes, within the inventory. :-)
Only exchange treecapitator.drop_items = true with treecapitator.drop_items = false at the init.lua file
Thanks , good mod
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map
- Mossmanikin
- Member
- Posts: 599
- Joined: Sun May 19, 2013 16:26
- Location: where we don't speak english.
-
- Member
- Posts: 90
- Joined: Tue Aug 20, 2013 02:00
Just tried it out with my voltbuild mod. There's one problem. Not all my tree nodes drop the same node as itself. For example, all my rubber tree nodes that have rubber in them just drop a regular rubber tree node when chopped instead of the one with rubber in it and sometimes it'll even drop the item rubber instead of the tree node.
-
- Member
- Posts: 90
- Joined: Tue Aug 20, 2013 02:00
Cool ^_^ Everything appears to be good. Even got the item on a rare occasion instead of the node. Support for your mod has been added to voltbuild's rubber trees.Hybrid Dog wrote:I edited the code. It might work now.ElectricSolstice wrote:Just tried it out with my voltbuild mod. There's one problem. Not all my tree nodes drop the same node as itself. For example, all my rubber tree nodes that have rubber in them just drop a regular rubber tree node when chopped instead of the one with rubber in it and sometimes it'll even drop the item rubber instead of the tree node.
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
New version:
— greatly reduced lag if treecapitator.drop_items isn't used (default) (I noticed while testing that capitating gets
. . executed more times because the trees are dug with minetest.node_dig up to the tree head)
— trees only become capitated if they have leaves (or fruits)
— the leaves (and fruits) don't get removed if they could belong to a tree next to the dug one
— 2 new settings:
. . . . – the drop of leaves not only as saplings can be allowed
. . . . – the default used tree values can be changed
— adding different trees with the same stem node could work now
— the stem needs to be at least 2 nodes heigh (Please tell me if I should change this (or add a settingto enable it))
— the trees of the two mods (sumpf and nyanland) are only registered if these mods are installed
before digging:
after digging:
— greatly reduced lag if treecapitator.drop_items isn't used (default) (I noticed while testing that capitating gets
. . executed more times because the trees are dug with minetest.node_dig up to the tree head)
— trees only become capitated if they have leaves (or fruits)
— the leaves (and fruits) don't get removed if they could belong to a tree next to the dug one
— 2 new settings:
. . . . – the drop of leaves not only as saplings can be allowed
. . . . – the default used tree values can be changed
— adding different trees with the same stem node could work now
— the stem needs to be at least 2 nodes heigh (Please tell me if I should change this (or add a settingto enable it))
— the trees of the two mods (sumpf and nyanland) are only registered if these mods are installed
before digging:
after digging:
-
- Member
- Posts: 4317
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] TreeCapitator [treecapitator]
This is very useful. Does it work on moretrees as well? (might be asking a bit much though).
It is certainly more fun felling trees with a mod that digs up the rest automaticly. Normal decay of leaves is also too slow on some servers, so this is a definite plus.
It is certainly more fun felling trees with a mod that digs up the rest automaticly. Normal decay of leaves is also too slow on some servers, so this is a definite plus.
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
thanks.Sokomine wrote:This is very useful. Does it work on moretrees as well? (might be asking a bit much though).
It is certainly more fun felling trees with a mod that digs up the rest automaticly. Normal decay of leaves is also too slow on some servers, so this is a definite plus.
I didn't add moretrees' trees yet. I don't know enough about them because this mod is fairly new to my minetest world and on servers I didn't watch them often enough. I don't know exactly how they look like. Maybe every palm tree looks completely similar but I'm not sure.
Re: [Mod] TreeCapitator [treecapitator]
The tricky thing about moretrees is a how freakin huge they can get, and the fact that they can sometimes overlap other trees. Then there's all the branch tree nodes. It can be a real pain to harvest the big redwoods.
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
So most of the moretrees have a straight stem, leaves, but also tree nodes, on the top and can be compared a little bit to the usual apple tree.gsmanners wrote:The tricky thing about moretrees is a how freakin huge they can get, and the fact that they can sometimes overlap other trees. Then there's all the branch tree nodes. It can be a real pain to harvest the big redwoods.
I would need to add a new type of tree with configurable stem sizes, min- and maxpoints for the top and an option to enable checking tree nodes around different.
-
- Member
- Posts: 4317
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] TreeCapitator [treecapitator]
It would be really great if moretree trees could be harvested like this. Cutting one down for the wood may easily take half an hour. Most players are not considerate enough to do it in a clean way (=take the entire tree down and replant). My traders are one way around that - they "sell" moretrees wood as admin shops. But sometimes, there's a tree just in the way...
- Krock
- Developer
- Posts: 4683
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] TreeCapitator [treecapitator]
How about a chainsaw-like style which is contain in the technic mod?Hybrid Dog wrote:So most of the moretrees have a straight stem, leaves, but also tree nodes, on the top and can be compared a little bit to the usual apple tree.
I would need to add a new type of tree with configurable stem sizes, min- and maxpoints for the top and an option to enable checking tree nodes around different.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
I don't know much about this chainsaw.Krock wrote:How about a chainsaw-like style which is contain in the technic mod?Hybrid Dog wrote:So most of the moretrees have a straight stem, leaves, but also tree nodes, on the top and can be compared a little bit to the usual apple tree.
I would need to add a new type of tree with configurable stem sizes, min- and maxpoints for the top and an option to enable checking tree nodes around different.
I think it doesn't preserve the tree(s) next to the sawn one.
-
- Member
- Posts: 16
- Joined: Sat Jun 07, 2014 19:22
Re: [Mod] TreeCapitator [treecapitator]
Bumping this mod mostly because it's been very useful, but also because I selfishly want updates (still learning lua atm or I'd do it myself). So cool.
-
- Member
- Posts: 26
- Joined: Thu Aug 28, 2014 18:42
Re: [Mod] TreeCapitator [treecapitator]
help... im not getting any saplings please help
Re: [Mod] TreeCapitator [treecapitator]
The way this mod works it removed a node and places it as a dropped item, it will not give you saplings unless the mod incorporated such a feature to drop them as well...
-
- Member
- Posts: 26
- Joined: Thu Aug 28, 2014 18:42
Re: [Mod] TreeCapitator [treecapitator]
well then HOW DO I MAKE IT GIVE ME SAPLINGS?!?
all i need is a small code to give me a random number of saplings every time a tree is treecapitated that i can paste somewhere in the code (where it will execute at the right time)
all i need is a small code to give me a random number of saplings every time a tree is treecapitated that i can paste somewhere in the code (where it will execute at the right time)
Re: [Mod] TreeCapitator [treecapitator]
you need a new version this was a bugsloantothebone wrote:well then HOW DO I MAKE IT GIVE ME SAPLINGS?!?
all i need is a small code to give me a random number of saplings every time a tree is treecapitated that i can paste somewhere in the code (where it will execute at the right time)
Can your read this?
- JPRuehmann
- Member
- Posts: 336
- Joined: Fri Mar 21, 2014 21:40
- Location: Germany
- Contact:
Re: [Mod] TreeCapitator [treecapitator]
Hello
I get this message, "[treecapitator] Error: Overwriting default:tree went wrong." what is wrong?
Thanks,
JPR
I get this message, "[treecapitator] Error: Overwriting default:tree went wrong." what is wrong?
Thanks,
JPR
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
This message means that a tree node (e.g. "default:tree") which became overridden to capitate a tree if it's dug (without shift etc.) became overridden by another mod again, so the treecapitator mod uses minetest.register_on_dignode instead of the after_dig_node of trunk nodes, which causes a little bit more lag but not noticeable.JPRuehmann wrote:Hello
I get this message, "[treecapitator] Error: Overwriting default:tree went wrong." what is wrong?
Thanks,
JPR
So it's actually just an info message, not an error.
I guess a mod, not default, redefines "default:tree" without keeping its default values (the ones of minetest.registered_nodes["default:tree"]).
Re: [Mod] TreeCapitator [treecapitator]
I updated this mod with sound of a falling tree, taken from there http://www.freesound.org/people/ecfike/sounds/139952/.
EDIT: Now in upstream.
EDIT: Now in upstream.
Last edited by mintpick on Fri Apr 03, 2015 09:59, edited 2 times in total.
- Hybrid Dog
- Member
- Posts: 2852
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] TreeCapitator [treecapitator]
thanks, I added it but disabled it by default because the sound was also played if a single trunk block was dugmintpick wrote:I updated this mod with sound of a falling tree, taken from there http://www.freesound.org/people/ecfike/sounds/139952/.
Re: [Mod] TreeCapitator [treecapitator]
I moved "sound_play" call to "if tree_found then" section. It is fixed sound playing when individual nodes of wood is mined, but when there is at least one another wood node above one mined it still fires the sound.Hybrid Dog wrote:thanks, I added it but disabled it by default because the sound was also played if a single trunk block was dug
EDIT:
Ok, finally fixed it by moving "sound_play" call to "if leaf_found then" section.
EDIT2: Removed download, now it's in upstream.
Last edited by mintpick on Fri Apr 03, 2015 10:00, edited 1 time in total.