Page 1 of 2

[Mod] Alternative Trunks [0.1.6] [altertrunks]

PostPosted: Mon May 27, 2013 15:22
by Mossmanikin

aLTeRNaTiVe TRuNKS



Image

Description: A mod which turns the cubic trunks in to "cylindric" ones in a non-invasive way.
(If you disable this mod you got the normal cubic trunks in your map and no unknown_node-textures on it.)

Supports: conifers, default, riesenpilz, moreblocks, moretrees, sumpf & trees

To support these mods this mod is split in different parts which can be enabled/disabled in the menu;
altertrunks_conifers: Supports the trunks of Perlin conifers ongen.
• Dependencies: conifers
• Compatible with Minetest versions: 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_default: Supports the default logs.
• Dependencies: default
• Compatible with Minetest versions: 0.4.1, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_moreblocks: Supports the horizontal trunks of More Blocks.
• Dependencies: moreblocks
• Compatible with Minetest versions: 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_moretrees: Supports More Trees!.
• Dependencies: moretrees
• Compatible with Minetest versions: 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_riesenpilz: Supports the stems of Giant Mushroom/ Mushrooms.
• Dependencies: riesenpilz
• Compatible with Minetest versions: 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_sumpf: Supports Swamps.
• Dependencies: sumpf
• Compatible with Minetest versions: 0.4.1, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7

altertrunks_trees: Supports Tiny Trees.
• Dependencies: trees
• Compatible with Minetest versions: 0.4.1, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6dev, 0.4.7


As of 0.1.5 alterleaves is not included, but can still be downloaded separately.
alterleaves: Supports the leaves of default. Really kills fps. Don't think i'll continue this one.
• Dependencies: default
• Compatible with Minetest versions: 0.4.6dev


Known issue:
Sometimes the trunks are black.
You can fix this by placing or removing a node next to it.
That way the lighting will get recalculated.

Image

Nodes:
Image
-----------------------------------------------------------------------------------------------------------
Trunks
-----------------------------------------------------------------------------------------------------------
conifers: Conifer reversed trunk & Conifer trunk
default: Cactus, Jungle Tree & Tree
moreblocks: Horizontal Jungle Tree & Horizontal Tree
moretrees: Apple Tree Trunk, Beech Tree Trunk, Birch Tree Trunk, Douglas Fir Trunk, Oak Tree Trunk, Palm Tree Trunk, Pine Tree Trunk, Rubber Tree Trunk, Rubber Tree Trunk (Empty), Giant Sequoia Trunk, Spruce Tree Trunk & Willow Tree Trunk
riesenpilz: Giant Mushroom Stem, Giant Mushroom Stem Blue, Giant Mushroom Stem Brown
sumpf: Mossy Birch Trunk, Birch Trunk, Horizontal Birch Trunk
trees: Conifer trunk, mangrove Tree & palm Tree

-----------------------------------------------------------------------------------------------------------
Leaves
-----------------------------------------------------------------------------------------------------------
default: Jungle Leaves & Leaves

Image
The default logs and the horizontal ones from moreblocks and the trunks from conifers. Made the "cylinders" fit to the 16x16 textures and a new texture for the top of the default trunk.

Credits:
12Me21 - for feedback/tips,
Bas080 - for the Tiny Trees mod,
Calinou - for the More Blocks mod,
celeron55 - for Minetest,
Hybrid Dog - for the mods Giant Mushroom/ Mushrooms & Swamps,
Jeija - for the inspiring Irregular 3D Objects demo mod
kaeza - for helping me to support Tiny Trees,
paramat - for the Perlin conifers ongen mod,
sapier - for the inspiring mods growing cactus & growing trees,
VanessaE - for the More Trees! mod,
yves_de_beck - for the inspiring NonCubic Blocks Mod
and
all whom I forgot to mention, who made Minetest, modding and this mod possible.

Downloads:
Please tell me if one of these links doesn't work.
altertrunks-0.1.6.zip
altertrunks-0.1.5.zip
altertrunks-0.1.4.zip
altertrunks-0.1.3.zip
altertrunks-0.1.2.zip
altertrunks-0.1.1.zip
altertrunks-0.1.0.zip
altertrunks-0.0.9.zip
altertrunks-0.0.8.zip
---------------------
alterleaves-0.0.3.zip

License (code): WTFPL
License (texture): CC BY-SA

Image


Changelog:
0.1.6 Edited textures of sides to look less broken
0.1.5 Added support for Giant Mushroom/ Mushrooms, removed alterleaves
0.1.4 Added support for Swamps
0.1.3 Added support for More Trees
0.1.2 Added support for Tiny Trees
0.1.1 Partial support for trunks from Perlin conifers ongen mod & "spheric" leaves
0.1.0 New texture for Tree top
0.0.9 Added "cylindric" Cactus
0.0.8 First upload
0.0.7 Shapes changed: no more pixels cut in half
0.0.6 Shapes changed: less detail
0.0.5 Added support for More Blocks
0.0.4 Shapes changed: symmetry
0.0.3 Shapes changed: more detail
0.0.2 Selection box is a cube now
0.0.1 Added "cylindric" Jungle Tree
0.0.0 Tree node is a "cylinder"


Original post:
-----------------------------------------------------------------------------------------------------------
Minetest Forums → Modding General → [Modidea] Alternative Trunks [altertrunks]
-----------------------------------------------------------------------------------------------------------
Hello community, I'm quite new to modding in general and for minetest in particular.
Yesterday I started playing a little bit with code and had an idea...


I'm quite certain this idea that I had is not new at all:

A mod which turns the cubic trunks in to cylindric ones.


I had in mind to do this in a non-invasive way.
By that I mean: if you disable this mod you got the normal cubic trunks in your map and no unknown_node-textures on it.


Moreover this mod should support as many other mods (with own trees) as possible, while having no dependencies.

My questions are the following:

Does a (working and downloadable) mod exist which does what I had in mind or something similar?


Any comments (answers, links, ideas, opinions...) are welcome.

PostPosted: Mon May 27, 2013 15:53
by PilzAdam
Please post your mod requests/ideas here: http://forum.minetest.net/viewtopic.php?id=2434
Also a mod like this already exists.

PostPosted: Mon May 27, 2013 15:54
by Zeg9
3dforniture has this feature already, but only for default trees.

PostPosted: Mon May 27, 2013 16:02
by Mossmanikin
PilzAdam wrote:Please post your mod requests/ideas here: http://forum.minetest.net/viewtopic.php?id=2434


Ok, sorry, got it for the next post.

PilzAdam wrote:Also a mod like this already exists.


This is not really helpful. For I have no idea which one you mean. ;)

PostPosted: Mon May 27, 2013 16:04
by Mossmanikin
Zeg9 wrote:3dforniture has this feature already, but only for default trees.


Thank you! :)
Going to have a look at it.

PostPosted: Mon May 27, 2013 16:22
by Mossmanikin
Just tested 3dforniture for the first time.
Seems to be a great mod.
But does definitely not do what I had in mind.

PostPosted: Mon May 27, 2013 16:57
by Mossmanikin
Changed first post since I'm already modding.

PostPosted: Tue May 28, 2013 10:49
by Mossmanikin
Download link added in first post

PostPosted: Tue May 28, 2013 10:55
by Zeg9
Kittens will die if you continue to use rar.
Please use an open format, best would be zip.

PostPosted: Tue May 28, 2013 11:06
by Evergreen
Zeg9 wrote:Kittens will die if you continue to use rar.
Please use an open format, best would be zip.

Each time you use a rar format, and angel loses it's wings...

PostPosted: Tue May 28, 2013 11:07
by Mossmanikin
Zeg9 wrote:Kittens will die if you continue to use rar.


That of course I do not wish to happen. :D

I'll add a zip file.

PostPosted: Tue May 28, 2013 11:10
by Mossmanikin
Evergreen wrote:Each time you use a rar format, and angel loses it's wings...


I'm starting to feel bad...

PostPosted: Tue May 28, 2013 11:14
by Evergreen
Mossmanikin wrote:
Evergreen wrote:Each time you use a rar format, and angel loses it's wings...


I'm starting to feel bad...

Just change it to zip, and you will be fine. :D

PostPosted: Tue May 28, 2013 11:17
by Mossmanikin
Evergreen wrote:Just change it to zip, and you will be fine. :D


Zip added.
Feel much better now. :D

PostPosted: Tue May 28, 2013 13:46
by 12Me21
Cool, The only problem I see is that at the bottom of jungle trees there are more tree pieces around the main trunk , and this mod will make them look (even more) weird. I don't think there is a way to fix that without adding more pieces, though. I wish there were different nodes for the bottom of jungle trees, with the "default_jungletree_side.png" texture on all sides except the bottom.

PostPosted: Tue May 28, 2013 14:54
by Mossmanikin
12Me21 wrote:Cool, The only problem I see is that at the bottom of jungle trees there are more tree pieces around the main trunk , and this mod will make them look (even more) weird. I don't think there is a way to fix that without adding more pieces, though. I wish there were different nodes for the bottom of jungle trees, with the "default_jungletree_side.png" texture on all sides except the bottom.


Thanks for your feedback. :)

The jungle trees look a bit weird indeed.
Don't see a real problem here with the trunk; since logs of real trees aren't really round either.
But totally agree that a different node for roots would be nice.

Maybe I should add a screenshot of a jungle tree with this mod...

PostPosted: Tue May 28, 2013 18:57
by Mossmanikin
First post updated: v0.0.9 with cacti

PostPosted: Tue May 28, 2013 21:16
by 12Me21
you should make new textures where the rings in the tree are round not square-ish

PostPosted: Wed May 29, 2013 10:12
by Mossmanikin
12Me21 wrote:you should make new textures where the rings in the tree are round not square-ish


I agree.
Tried to make a new one for the top of the default tree yesterday. The result wasn't satisfying.
Will give it a new try today or tomorrow and when I'm satisfied I'll add it.

PostPosted: Wed May 29, 2013 16:26
by Mossmanikin
First post updated: v0.1.0 with new texture for top of default tree log

PostPosted: Fri May 31, 2013 22:47
by Mossmanikin
First post updated: v0.1.1

PostPosted: Fri May 31, 2013 22:52
by Inocudom
Will this mod support moretrees and tiny_trees?

PostPosted: Fri May 31, 2013 22:56
by Mossmanikin
Unfortunately I haven't found a way to support it yet

PostPosted: Fri May 31, 2013 23:03
by Mossmanikin
To give you an example of something I tried:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("trees") ~= nil then
minetest.register_node(":trees:tree_conifer", {
    description = "Conifer trunk",
    paramtype = "light",
    tiles = {"trees_tree_top_conifer.png", "trees_tree_top_conifer.png", "trees_tree_conifer.png"},
    drawtype = "nodebox",
    selection_box = {
        type = "fixed",
        fixed = cube,
    },
    node_box = {
        type = "fixed",
        fixed = cylinder,
    },
    groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
    sounds = default.node_sound_wood_defaults(),
})
end


Won't work...

PostPosted: Fri May 31, 2013 23:09
by 12Me21
you could make multiple mods, one for default, one for moretrees, and so on

PostPosted: Fri May 31, 2013 23:15
by Mossmanikin
12Me21 wrote:you could make multiple mods, one for default, one for moretrees, and so on


Yes, as soon as I find a way to support more mods I'll probably do that.
Kind of stuck at the moment.

PostPosted: Sat Jun 01, 2013 16:12
by Mossmanikin
First post updated: v0.1.2 - support for Tiny Trees

PostPosted: Sat Jun 01, 2013 19:51
by RealBadAngel
i wonder how you gonna get through moretrees ;)

PostPosted: Sat Jun 01, 2013 20:43
by Mossmanikin
RealBadAngel wrote:i wonder how you gonna get through moretrees ;)


I'm working on it. It's all about patience... ... ... :D

PostPosted: Sun Jun 02, 2013 02:22
by Mossmanikin
First post updated: v0.1.3 - support for More Trees!