Page 1 of 1

[Mod] Shrubs [v1.5] [shrub]

PostPosted: Sun Oct 07, 2012 21:38
by SegFault22
Hello all, this is the first of my mods to ever reach a useful, public-ready 1.0. Hopefully it will not be forgotten and/or otherwise lost in the depths of the forgotten pages of the forum.
--------------------------------
Image
Have you ever seen dry shrubs in a desert, and felt sorry for them - as they are just sitting there, dying, with no water? Well, now you can help those poor shrubs, by giving them water!
--------------------------------
This mod adds 2 things: Shrubs, and a crafting recipe to turn dry shrubs into shrubs. Doing this requires 8 dry shrubs and a bucket of water. Here's how to craft:
Image
doing so gives 8 shrubs, and returns an empty bucket.
In v1.5+, shrubs will spawn near other shrubs, but only on default:dirt_with_grass. Also, the process is very slow. To keep them from spawning, keep your shrubs away from default:dirt_with_grass that is touching any corners, vertices, or faces of the shrub itself.
--------------------------------
Licensing:
LGPLv2/later
--------------------------------
Dependencies:
Default, bucket.
--------------------------------
DOWNLOAD:
V1.0
V1.5(unstable - ABM makes shrubs spawn everywhere when one is placed)
--------------------------------

PostPosted: Sun Oct 07, 2012 21:46
by LandMine
Nice Mod giving shrubs a use. I think you should expand from here, and give the green shrubs some use as well.

Also you can use minus.com or mediafire.com to upload files.

Will look for future updates.

PostPosted: Sun Oct 07, 2012 22:12
by SegFault22
Ah, thank you for the examples for upload sites. In the future I plan to add more shrub stuff, maybe a way to grow shrubs bigger and grow different shrubs depending on what blocks they are on and the blocks under those blocks.
Thank you for your support.

PostPosted: Mon Oct 08, 2012 02:41
by GloopMaster
how about...

shrubs spawn on grass, crafting optional, can be crafted to junglegrass like paper to a book.

PostPosted: Mon Oct 08, 2012 03:00
by SegFault22
Well, I don't know about making them spawn on grass...yet. Maybe, placing shrubs on grass or dirt, makes them spawn more around them? So that one would have to introduce some into the environment before any more grow :D

PostPosted: Mon Oct 08, 2012 05:31
by SegFault22
=UPDATE=
-Added ABM that spawns shrubs near other shrubs (only on default:dirt_with_grass)
-Altered texture a bit
-NOTE that there is a problem with the ABM, that may cause shrubs to spawn everywhere after one is placed. This has not been tested a lot, it may or may not happen, so stick to v1.0 until this is fixed.
DOWNLOAD: V1.5

PostPosted: Wed Oct 10, 2012 17:59
by GloopMaster
take a look at mapgen.lua, dry shrubs are created there.

change instances of default:desert_sand to default:dirt_with_grass and default:dry_shrub to shrubs:shrub (or whatever your node is called)

PostPosted: Wed Oct 10, 2012 20:58
by SegFault22
That's what I was thinking of doing. But, I want the shrubs to generate in large numbers, like what you see in rolling plains and the like. Only problem is, they'll spawn everywhere, in all biomes that have grass. So how would one go about only making them spawn in one biome, or only spawning in large, mostly-flat regions?

PostPosted: Wed Oct 10, 2012 21:05
by Topywo
I think I remember that in the animal mods there are animals created in different types of terrain based on the amount of light. I think also Vanessa's seaweed works like that. Maybe you can use that.

Good luck with the mod!

PostPosted: Wed Oct 10, 2012 23:12
by SegFault22
I want to avoid ABMs at this stage, until shrubs are generated with MapGen in grassy-flatland areas. After that, I will use some ABM stuff to make them spawn around other shrubs, and maybe even add ferns and other shrubs/small plants to the mod.
Thank you for your support.

PostPosted: Thu Oct 11, 2012 13:46
by GloopMaster
As far as minetest cares, grassy plain == forest.

As said before, you could check the light level. But this would also cause them to not be generated at night, so idk.

PostPosted: Fri Oct 12, 2012 03:07
by SegFault22
Eh, I guess it's fine if they generate everywhere. People can clear them if they want to build a home, and grass grows tall like that in real-life, so wouldn't that make more sense that the tall grass needs to be cleared first?
Updating to v2.0 soon.

PostPosted: Thu Jan 17, 2013 21:19
by Ragnarok
Knock, knock. When will be version 2.0? I'm looking forward to :)