add rook piece
parent
d7894e59f7
commit
e12f89550e
37
pieces.lua
37
pieces.lua
|
@ -45,6 +45,43 @@ for color = 1, 2 do
|
||||||
})
|
})
|
||||||
|
|
||||||
--Rook
|
--Rook
|
||||||
|
minetest.register_node("chess:rook_"..colors[color],
|
||||||
|
{
|
||||||
|
description = 'rook',
|
||||||
|
groups = {snappy = 2},
|
||||||
|
tiles = {"chess_piece_"..colors[color]..".png"},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = 'light',
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
light_source = 8, --max light is 18
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.2, -0.5, -0.3, 0.2, -0.4, 0.3},
|
||||||
|
{-0.3, -0.5, -0.2, 0.3, -0.4, 0.2},
|
||||||
|
{-0.1, -0.4, -0.2, 0.1, -0.3, 0.2},
|
||||||
|
{-0.2, -0.4, -0.1, 0.2, -0.3, 0.1},
|
||||||
|
{-0.1, -0.3, -0.1, 0.1, 0.2, 0.1},
|
||||||
|
{-0.1, 0.2, -0.2, 0.1, 0.3, 0.2 },
|
||||||
|
{-0.2, 0.2, -0.1, 0.2, 0.3, 0.1},
|
||||||
|
{-0.2, 0.3, -0.2, 0.2, 0.4, 0.2},
|
||||||
|
{-0.2, 0.4, -0.2, -0.1, 0.5, -0.1},
|
||||||
|
{-0.05, 0.4, -0.2, 0.05, 0.5, -0.1},
|
||||||
|
{0.1, 0.4, -0.2, 0.2, 0.5, -0.1},
|
||||||
|
{-0.2, 0.4, -0.05, -0.1, 0.5, 0.05},
|
||||||
|
{0.1, 0.4, -0.05, 0.2, 0.5, 0.05},
|
||||||
|
{-0.2, 0.4, 0.1, -0.1, 0.5, 0.2},
|
||||||
|
{-0.05, 0.4, 0.1, 0.05, 0.5, 0.2},
|
||||||
|
{0.1, 0.4, 0.1, 0.2, 0.5, 0.2},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||||
|
},
|
||||||
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
|
||||||
|
})
|
||||||
|
|
||||||
--Knight
|
--Knight
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue