Page 1 of 1

How to create blocks like stairs? How to make a block destroyable?

PostPosted: Mon Sep 03, 2012 17:58
by webdesigner97
I don't understand how to create blocks like stairs. All I know is that I have to use nodebox. But I don't understand how.
Can somebody give me an example?
Thx

PostPosted: Mon Sep 03, 2012 20:06
by PilzAdam
There is already a nodebox example thread here in the forum. Please search on your own before asking questions.

PostPosted: Mon Sep 03, 2012 20:13
by webdesigner97
PilzAdam wrote:There is already a nodebox example thread here in the forum. Please search on your own before asking questions.

Really? Maybe I used the wrong keywords.....
thx

PostPosted: Mon Sep 03, 2012 20:16
by PilzAdam

PostPosted: Tue Sep 04, 2012 15:38
by webdesigner97

Ok. Thx

But another question:
I don't understand how to make the block destroyable. With this code (for a normal version of my stairs) it isn't destroyable:
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
-- Asphalt block
    minetest.register_node("streets:asphalt", {
    description = "Asphalt",
    tile_images = {"streets_asphalt.png"},
    drawtype = "normal",
    })


How can I fix that?

PostPosted: Tue Sep 04, 2012 15:58
by PilzAdam
webdesigner97 wrote:

Ok. Thx

But another question:
I don't understand how to make the block destroyable. With this code (for a normal version of my stairs) it isn't destroyable:
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
-- Asphalt block
    minetest.register_node("streets:asphalt", {
    description = "Asphalt",
    tile_images = {"streets_asphalt.png"},
    drawtype = "normal",
    })


How can I fix that?

Use groups: https://github.com/celeron55/minetest/blob/master/doc/lua_api.txt#L381

PostPosted: Tue Sep 04, 2012 16:36
by webdesigner97
Thx very much for helping a modding beginner! :D

PostPosted: Tue Sep 04, 2012 16:39
by PilzAdam
webdesigner97 wrote:Thx very much for helping a modding beginner! :D

Thats the second reason why I am here.