1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 05:40:24 +02:00

Convert stairs in meshnode

This commit is contained in:
jeanpatrick.guerrero@gmail.com
2015-07-03 13:02:31 +02:00
committed by paramat
parent 585b2bc22e
commit f3f8b22698
2 changed files with 49 additions and 2 deletions

View File

@ -7,14 +7,22 @@ stairs = {}
function stairs.register_stair(subname, recipeitem, groups, images, description, sounds)
minetest.register_node(":stairs:stair_" .. subname, {
description = description,
drawtype = "nodebox",
drawtype = "mesh",
mesh = "stairs.obj",
tiles = images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
sounds = sounds,
node_box = {
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
{-0.5, 0, 0, 0.5, 0.5, 0.5},
},
},
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},