add skateboard

This commit is contained in:
kilbith 2014-09-10 13:49:20 -04:00 committed by Vanessa Ezekowitz
parent e606ee176c
commit dc0aec6f0d
6 changed files with 39 additions and 0 deletions

View File

@ -2670,4 +2670,12 @@ minetest.register_craft({
}, },
}) })
minetest.register_craft({
output = "homedecor:skateboard",
recipe = {
{ "dye:yellow","dye:green","dye:blue" },
{ "homedecor:wood_table_small_square","homedecor:wood_table_small_square","homedecor:wood_table_small_square" },
{ "default:steel_ingot","","default:steel_ingot" }
},
})

View File

@ -1425,3 +1425,34 @@ minetest.register_node("homedecor:sportbench", {
} }
}) })
minetest.register_node("homedecor:skateboard", {
description = "Skateboard",
tiles = {
"homedecor_skateboard_top.png",
"homedecor_skateboard_bottom.png",
"homedecor_skateboard_sides.png"
},
inventory_image = "homedecor_skateboard_inv.png",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
groups = { snappy=3 },
node_box = {
type = "fixed",
fixed = {
{-0.4375, -0.4375, -0.1875, 0.4375, -0.415, 0.125}, -- NodeBox1
{-0.375, -0.5, 0.0625, -0.3125, -0.4375, 0.125}, -- NodeBox2
{-0.375, -0.5, -0.1875, -0.3125, -0.4375, -0.125}, -- NodeBox3
{0.3125, -0.5, 0.0625, 0.375, -0.4375, 0.125}, -- NodeBox4
{0.3125, -0.5, -0.1875, 0.375, -0.4375, -0.125}, -- NodeBox5
{-0.5, -0.4375, -0.16, -0.4375, -0.415, 0.0975}, -- NodeBox6
{0.4375, -0.4375, -0.16, 0.5, -0.415, 0.0975}, -- NodeBox7
}
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.2, 0.5, -0.40, 0.125 }
},
on_place = minetest.rotate_node
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB