Page 1 of 1

[Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Sat May 09, 2015 00:38
by desvox
This is my first published mod. I've added ore generation to tree trunks, and you can grow the logs into farmable plants. It is intended to ease progression in the game, if you enjoy difficulty then this mod is probably not for you. If you're sick of digging like I am, though...

Ore is generated in both regular and jungle trees. Junglewood has a higher chance of spawning ore. All logs except coalwood logs need to be smelted to get their resources, coalwood just needs to be crafted. Place any orewood log (doesn't matter if it is facing up or sideways) next to water and it will sprout papyrus-like plants that drop their respective resources when they are harvested. They grow at about the same rate as papyrus (which isn't particularly fast), and have a max grow height just like it as well, the code is pretty much the same. Both junglewood and oak wood grow plants at the same rate.

A huge thank you to /u/Thermal--Shock for suggesting harvestable plants.

Also take a look at Gravelpunch's mod, Mineral Trees. I had no part in the development of this but figured I'd give him a mention, especially since some may prefer that mod to mine. <3

Changelog:

1.0 to 1.1: Orewood can now be placed near water to grow plants. Coalwood no longer just drops a coal lump, it must be crafted. Also fixed a typo in the names prior to the 1.1 release.

Image

Image

Image

License: WTFPL for code and textures are Creative Commons.

Mod dependencies: default

GitHub
Download .ZIP


Todo:
Clean up repetitive code for better readability. [Maybe someday]
Add support for ores of other mods. [ASAP]

Re: [Mod] OreWood [1.0] [orewood]

PostPosted: Sat May 09, 2015 01:04
by Nathan.S
This is a very interesting concept.

Re: [Mod] OreWood [1.0] [orewood]

PostPosted: Sat May 09, 2015 09:17
by Krock
This would fit perfectly into the "weird" subgame.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Sat May 09, 2015 17:29
by desvox
I've updated the mod to include plants that can be harvested for even more resources. See the OP.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Sun May 10, 2015 19:04
by Minetestforfun
Very interresting idea, not for me, but very interresting ! :)

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon May 18, 2015 21:11
by Sokomine
Wood with ores is really strange. There used to be an old iron tree mod. Perhaps all that really ought to go into the weired game.

Papyrus in combination with the ore textures looks surprisingly intresting. The ore seems to from knots in the plant. That might be a way of getting diffrent plant types out of few textures. It's always good to have more of them around.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon May 18, 2015 21:18
by LionsDen
From what I can see, the trees only get the orewood if they were generated during chunk generation. If you plant a sapling and a tree grows, there will never be any orewood in it.

Also, some of the jungle orewoods aren't giving the orewood in the inventory when they are chopped down. I think the coal one is one of these. I may not have found some of the other jungle orewoods at all. All of the default tree orewoods seem to work as expected.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Wed May 20, 2015 03:31
by jordan4ibanez
I love it!

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Wed May 20, 2015 16:57
by desvox
LionsDen wrote:From what I can see, the trees only get the orewood if they were generated during chunk generation. If you plant a sapling and a tree grows, there will never be any orewood in it.

Also, some of the jungle orewoods aren't giving the orewood in the inventory when they are chopped down. I think the coal one is one of these. I may not have found some of the other jungle orewoods at all. All of the default tree orewoods seem to work as expected.


Thanks for letting me know. You're right, jungle coal wood was dropping lumps and not the log. I'm fixing this now, when you read this you can go ahead and update from git. =)

Sokomine wrote:Wood with ores is really strange. There used to be an old iron tree mod. Perhaps all that really ought to go into the weired game.


Do you mean the textures for the wood? Because I tweaked the colors of the ore patterns to try and make it look less strange but I actually like the way the orewoods look. But yeah, if you mean as a concept, this is defintely a weird mod.

jordan4ibanez wrote:I love it!


It really means a lot to me <3

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon Jun 15, 2015 12:43
by desvox
Cool, I finally got moved to the releases!

I haven't written any more code since the last release like a month ago, although I do still plan to add 3rd party ores at some point. I will also do any bugfixes or take suggestions.

Also, take a look at someone else's implementation of the same basic idea. Looks pretty rad.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon Jun 15, 2015 13:31
by programmingchicken
Woahz.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 10:39
by Ivà
@desvox, can you use overlay textures for the wood ores on trees please? This will make them better support other textures than default one.

Thankyou!

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 12:15
by ronnietucker
Can this be used in an existing map?

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 13:31
by cd2
cool mod!

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 17:54
by LionsDen
ronnietucker wrote:Can this be used in an existing map?


As far I as I could see, the trees only show up during map generation. They don't grow when you plant saplings. So it will work on an existing map but only in the areas that have not been generated yet. In other words you will only see them in the areas that you haven't ever visited.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 18:18
by desvox
Ivà wrote:@desvox, can you use overlay textures for the wood ores on trees please? This will make them better support other textures than default one.

Thankyou!


That's a good idea, I've thought about it but wasn't sure if anyone would give a shit. I'll get to work on that today, I've got some free time for sure!


ronnietucker wrote:Can this be used in an existing map?


Sure, but it will only affect newly generated trees on new terrain. It doesn't generate in existing logs and they also do not show up in newly grown trees from saplings. You should also check out Gravelpunch's mod, if you dislike my implementation. I've mentioned him in my OP.

LionsDen wrote:
ronnietucker wrote:Can this be used in an existing map?


As far I as I could see, the trees only show up during map generation. They don't grow when you plant saplings. So it will work on an existing map but only in the areas that have not been generated yet. In other words you will only see them in the areas that you haven't ever visited.


I like you.

cd2 wrote:cool mod!


I *really* like you!

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 19:26
by desvox
Ivà wrote:@desvox, can you use overlay textures for the wood ores on trees please? This will make them better support other textures than default one.

Thankyou!


Done. The orewood logs still use their own mineral texture but the wood part is now loaded from the default texture set. Hopefully I didn't break anything when I did that! =D

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Thu Jun 18, 2015 20:29
by Ivà
desvox wrote:Done. The orewood logs still use their own mineral texture but the wood part is now loaded from the default texture set. Hopefully I didn't break anything when I did that! =D


Cool! Much appreciated :-)

And FYI, mineraltrees and orewood mods can live in the same world and use both :-P

+ Spoiler

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon Jun 29, 2015 02:33
by desvox
What other mods should I add support for? I want to add Technic ores but am not sure what other mods people use.

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Mon Jun 29, 2015 11:56
by cd2
  • moreores
  • lapis (lapislazuli)

Re: [Mod] OreWood: Grow ore from the trees! [1.1] [orewood]

PostPosted: Sat Jul 28, 2018 07:02
by ShallowDweller
So... since desvox seems to have been away for a while, I decided to try and add tinwood to the mod myself, and then I got carried away and added a few more things and...
In short, I kind of made a remake of your mod...