Page 1 of 1

[mod] Hills [grassblock]

Posted: Tue Oct 16, 2012 18:28
by qwrwed
This mod adds a full grass block (all faces are grass), a non-walkable (not solid) railllike grass cover, and 3 non-cubic grass blocks (normal slope, inner corner slope and outer corner slope)
Depends: default
Suggested by Immanuel_Kant, used on Redcrab's 30401 server. That version is outdated, and has only grass blocks and grass covers. The crafting recipe for 1 grassblock for that version is one dirt surrounded by 8 leaves.
Image
Download (Github)
Code: https://github.com/qwrwed/grassblock
After downloading, rename "qwrwed-grassblock-[whatever]" to "grassblock".
Crafting:
L= Leaves
D = Dirt
G = Grass block
_ = Nothing
_ L _
L D L
_ L _
Grass Block

G _ _
_ G _
_ _ G
or
_ _ G
_ G _
G _ _
Grass Cover (railllike, previously "Grass Hill")

G _ _
G G _
G G G
or
_ _ G
_ G G
G G G
Grass Slope (non-cubic)

_ _ _
G _ _
G G _
or
_ _ _
_ _ G
_ G G
Outer Grass Slope (non-cubic)

G _ _
_ _ G
_ G G
or
_ _ G
G _ _
G G _
Inner Grass Slope (non-cubic)

Screenshots:
Image
Image
License:WTFPL
TODO: add non-walkable grassblocks - craft will be glass with grassblock.
Credit to yves_de_beck for non-cubic nodeboxes.
Tell me if you find any recipe conflicts.

Posted: Tue Oct 16, 2012 18:54
by Mito551
nice. does it spawn by itself?

Posted: Wed Oct 17, 2012 08:30
by Topywo
Good! I think more people will like it.

I've read the init.lua and then tried it out. Now I've some questions/remarks:

1. I think you mixed up the output of your 1st and 3rd crafting (grassblock:block and hill)
2. The 5th craft, grassblock:block 6 is only possible after doing the 4th craft, default:dirt_with grass (or the first if the output should be grassblock:block). Normally digging dirt_with_grass gives you a dirt in your inventory, the grass disappears.

Edit: no it doesn't spawn by itself.

Posted: Wed Oct 17, 2012 14:49
by qwrwed
Topywo wrote:Good! I think more people will like it.

I've read the init.lua and then tried it out. Now I've some questions/remarks:

1. I think you mixed up the output of your 1st and 3rd crafting (grassblock:block and hill)
2. The 5th craft, grassblock:block 6 is only possible after doing the 4th craft, default:dirt_with grass (or the first if the output should be grassblock:block). Normally digging dirt_with_grass gives you a dirt in your inventory, the grass disappears.

Edit: no it doesn't spawn by itself.
1. Thanks for telling me, i will update it.
2. Putting grassblock in the craft table gives you dirt_with_grass, that recipe is so you don't have to keep placing and digging them to convert them into dirt; It's so grassblock can be made of dirt or dirt_with_grass.

EDIT: updated.

Posted: Thu Oct 18, 2012 18:40
by 0gb.us
Oh, wow. Actual hills with actual slopes!

Might I suggest implementing a seconds set like a staircase? That way, you still have slopes, but you can gently stroll up them, as opposed to jumping. Keep these ones though too. They make an awesome secret entrance to my bunker.

Posted: Thu Oct 18, 2012 19:26
by qwrwed
0gb.us wrote:Oh, wow. Actual hills with actual slopes!

Might I suggest implementing a seconds set like a staircase? That way, you still have slopes, but you can gently stroll up them, as opposed to jumping. Keep these ones though too. They make an awesome secret entrance to my bunker.
Will do.
Eventually.

Posted: Tue Nov 20, 2012 21:04
by Michael Eh?
Nice to know how to use it.

Posted: Tue Nov 20, 2012 21:44
by qwrwed
Ok.
By the way, I haven't really been writing the mods I've been meaning to, as I've been busy with homework, playing minetest and other games and not dying on a school trip. But I will include some description of the mod in the 1st post.

Posted: Wed Jan 16, 2013 13:36
by yves_de_beck
Hey wat about the edges of hills???

Like that:
Image

Posted: Wed Jan 16, 2013 13:56
by jojoa1997
I like that it should be added

Posted: Wed Jan 16, 2013 15:12
by Spots
+100 i like it a lot smoother hills and mountains easier to go up without jumping every block

Posted: Thu Jan 17, 2013 16:29
by qwrwed
yves_de_beck wrote:Hey wat about the edges of hills???

Like that:
Image
OK, can I use your code please?

Posted: Thu Jan 17, 2013 16:41
by yves_de_beck
qwrwed wrote:
yves_de_beck wrote:Hey wat about the edges of hills???

Like that:
Image
OK, can I use your code please?

You can use it. it's in my noncubic mod.
http://forum.minetest.net/viewtopic.php?id=4297

Slope, Slope Edge, and Slope Inner Edge i called the shapes in init.lua

Posted: Thu Jan 17, 2013 18:33
by Spots
wonder if there is a way to put grass on any side of the dirt node that is open to air so that there is a lot less dirt brown color on the map

Posted: Thu Jan 17, 2013 19:04
by Sokomine
If it's your server just exchange in the file games/minetest_game/mods/default/init.lua all occourances of
default_grass_side.png with default_grass.png.

Posted: Sat Jul 13, 2013 17:31
by qwrwed
Reuploaded to mediafire, non-cubic grass slopes added

Posted: Sat Jul 13, 2013 18:06
by Inocudom
It would be nice if mesh nodes were possible. That way, true slopes would be possible.

Posted: Sat Jul 13, 2013 20:03
by qwrwed
I agree - at least nodeboxes (usually) fit in with a cubic world though.

Posted: Sat Jul 13, 2013 21:19
by Inocudom
qwrwed wrote:I agree - at least nodeboxes (usually) fit in with a cubic world though.
Though that is true, nodeboxes have more faces, thus more polygons.

Posted: Sun Jul 14, 2013 13:11
by markveidemanis
Sokomine wrote:If it's your server just exchange in the file games/minetest_game/mods/default/init.lua all occourances of
default_grass_side.png with default_grass.png.
Or apply a texture pack :)

Posted: Mon Dec 30, 2013 22:41
by Minearriatest
Looks good, good work with the slopes.