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

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

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

by webdesigner97 » Mon Sep 03, 2012 17:58

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
Last edited by webdesigner97 on Tue Sep 04, 2012 15:51, edited 1 time in total.
 

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

by PilzAdam » Mon Sep 03, 2012 20:06

There is already a nodebox example thread here in the forum. Please search on your own before asking questions.
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Sep 03, 2012 20:13

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
 

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

by PilzAdam » Mon Sep 03, 2012 20:16

 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Tue Sep 04, 2012 15:38


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?
 

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

by PilzAdam » Tue Sep 04, 2012 15:58

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
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Tue Sep 04, 2012 16:36

Thx very much for helping a modding beginner! :D
 

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

by PilzAdam » Tue Sep 04, 2012 16:39

webdesigner97 wrote:Thx very much for helping a modding beginner! :D

Thats the second reason why I am here.
Last edited by PilzAdam on Tue Sep 04, 2012 16:39, edited 1 time in total.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 5 guests

cron