[Mod] Alternative Trunks [0.1.6] [altertrunks]

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

[Mod] Alternative Trunks [0.1.6] [altertrunks]

by Mossmanikin » Post

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.
Last edited by Mossmanikin on Sat Jun 08, 2013 16:53, edited 1 time in total.

Noob 4 life!
My stuff

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Please post your mod requests/ideas here: http://forum.minetest.net/viewtopic.php?id=2434
Also a mod like this already exists.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

3dforniture has this feature already, but only for default trees.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

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. ;)

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Zeg9 wrote:3dforniture has this feature already, but only for default trees.
Thank you! :)
Going to have a look at it.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Just tested 3dforniture for the first time.
Seems to be a great mod.
But does definitely not do what I had in mind.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Changed first post since I'm already modding.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Download link added in first post

Noob 4 life!
My stuff

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Kittens will die if you continue to use rar.
Please use an open format, best would be zip.
Last edited by Zeg9 on Tue May 28, 2013 10:57, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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...
Back from the dead!

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

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.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Evergreen wrote: Each time you use a rar format, and angel loses it's wings...
I'm starting to feel bad...

Noob 4 life!
My stuff

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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
Back from the dead!

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Evergreen wrote: Just change it to zip, and you will be fine. :D
Zip added.
Feel much better now. :D

Noob 4 life!
My stuff

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

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.
Shoutouts to Simpleflips

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

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...

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

First post updated: v0.0.9 with cacti

Noob 4 life!
My stuff

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

you should make new textures where the rings in the tree are round not square-ish
Shoutouts to Simpleflips

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

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.

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

First post updated: v0.1.0 with new texture for top of default tree log

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

First post updated: v0.1.1

Noob 4 life!
My stuff

User avatar
Inocudom
Member
Posts: 3098
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Will this mod support moretrees and tiny_trees?
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

Unfortunately I haven't found a way to support it yet

Noob 4 life!
My stuff

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

To give you an example of something I tried:

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...

Noob 4 life!
My stuff

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

you could make multiple mods, one for default, one for moretrees, and so on
Shoutouts to Simpleflips

Post Reply

Who is online

Users browsing this forum: amelaye and 4 guests