1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00
This commit is contained in:
Gael-de-Sailly 2015-07-09 12:39:50 +02:00
commit 8bae5923c0
3 changed files with 56 additions and 15 deletions

View File

@ -7,14 +7,22 @@ stairs = {}
function stairs.register_stair(subname, recipeitem, groups, images, description, sounds) function stairs.register_stair(subname, recipeitem, groups, images, description, sounds)
minetest.register_node(":stairs:stair_" .. subname, { minetest.register_node(":stairs:stair_" .. subname, {
description = description, description = description,
drawtype = "nodebox", drawtype = "mesh",
mesh = "stairs.obj",
tiles = images, tiles = images,
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
groups = groups, groups = groups,
sounds = sounds, 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", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
@ -309,13 +317,3 @@ stairs.register_stair_and_slab("obsidianbrick", "default:obsidianbrick",
"Obsidian Brick Stair", "Obsidian Brick Stair",
"Obsidian Brick Slab", "Obsidian Brick Slab",
default.node_sound_stone_defaults()) default.node_sound_stone_defaults())
-- From BFD:
stairs.register_stair_and_slab("cherry_wood", "default:cherry_plank",
{snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3},
{"default_wood_cherry_planks.png"},
"Cherry Plank Stair",
"Cherry Plank Slab",
"Cherry Plank Corner Stair",
default.node_sound_wood_defaults())

View File

@ -0,0 +1,39 @@
# Blender v2.74 (sub 0) OBJ File: ''
# www.blender.org
v -0.500000 -0.500000 0.500000
v -0.500000 0.000000 0.000000
v -0.500000 0.000000 -0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.000000 -0.500000
v 0.500000 0.000000 0.000000
v -0.500000 0.500000 0.500000
v -0.500000 0.500000 0.000000
v 0.500000 0.500000 0.000000
v 0.500000 0.500000 0.500000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 0.500000 0.500000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.500000 1.000000
vt 0.999900 0.000100
vt 0.999900 0.999900
vt 0.000100 0.999900
vt 0.000100 0.000100
s off
f 3/1 4/2 2/3
f 8/3 6/4 7/5
f 4/4 3/5 7/1 6/2
f 1/4 4/6 6/7 5/2
f 2/5 8/1 7/2 3/4
f 2/5 10/6 11/7 8/1
f 9/6 12/7 11/1 10/5
f 8/3 11/8 12/7
f 5/9 12/10 9/11 1/12
f 2/3 9/6 10/8
f 4/2 1/4 9/6
f 6/4 12/7 5/2

View File

@ -15,6 +15,10 @@
# http://gitorious.org/calinou/carbone # http://gitorious.org/calinou/carbone
# https://github.com/Jordach/big_freaking_dig (some elements) # https://github.com/Jordach/big_freaking_dig (some elements)
# Minetest_game
# [Stairs]
# mff-edit: Optimized stair mesh
# Mods # Mods
[3D Armor] [3D Armor]
dir: 3d_armor dir: 3d_armor