2013-08-10 19:23:52 +02:00
--[[
2013-08-16 18:52:37 +02:00
StreetsMod : Asphalt stairs
2013-08-10 19:23:52 +02:00
] ]
2015-02-21 14:46:49 +01:00
if not rawget ( _G , " register_stair_slab_panel_micro " )
or type ( register_stair_slab_panel_micro ) ~= " function " then return end
2016-01-09 14:51:32 -06:00
2013-08-16 18:52:37 +02:00
-- Asphalt solid line
-- Stair
minetest.register_node ( " :streets:asphalt_solid_line_stair " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( " Asphalt stair " ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_solid_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_solid_line.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 } ,
{ - 0.5 , 0.0 , 0.0 , 0.5 , 0.5 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_solid_line_stair 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " streets:asphalt_solid_line " } ,
{ " " , " streets:asphalt_solid_line " , " streets:asphalt_solid_line " } ,
{ " streets:asphalt_solid_line " , " streets:asphalt_solid_line " , " streets:asphalt_solid_line " }
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_solid_line_stair 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " streets:asphalt_solid_line " , " " , " " } ,
{ " streets:asphalt_solid_line " , " streets:asphalt_solid_line " , " " } ,
{ " streets:asphalt_solid_line " , " streets:asphalt_solid_line " , " streets:asphalt_solid_line " }
}
} )
-- Slab
minetest.register_node ( " :streets:asphalt_solid_line_slab " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( " Asphalt slab " ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_solid_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_solid_line.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_solid_line_slab 3 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " " } ,
{ " " , " " , " " } ,
{ " streets:asphalt_solid_line " , " streets:asphalt_solid_line " , " streets:asphalt_solid_line " }
}
} )
------------------------------------------------------------
-- Asphalt dashed line
-- Stair
minetest.register_node ( " :streets:asphalt_dashed_line_stair " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( " Asphalt stair " ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_dashed_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_dashed_line.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 } ,
{ - 0.5 , 0.0 , 0.0 , 0.5 , 0.5 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_dashed_line_stair 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " streets:asphalt_dashed_line " } ,
{ " " , " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " } ,
{ " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " }
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_dashed_line_stair 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " streets:asphalt_dashed_line " , " " , " " } ,
{ " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " , " " } ,
{ " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " }
}
} )
-- Slab
minetest.register_node ( " :streets:asphalt_dashed_line_slab " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( " Asphalt slab " ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_dashed_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_dashed_line.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_dashed_line_slab 3 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " " } ,
{ " " , " " , " " } ,
{ " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " , " streets:asphalt_dashed_line " }
}
} )
-- Asphalt outer line
minetest.register_node ( " :streets:asphalt_side_stair_l " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( " Asphalt stair " ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_side.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 } ,
{ - 0.5 , 0.0 , 0.0 , 0.5 , 0.5 , 0.5 }
}
}
} )
minetest.register_node ( " :streets:asphalt_side_stair_r " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( streets.S ( " Asphalt stair " ) ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_side_r.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side_r.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
drop = " streets:asphalt_side_stair_l " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 } ,
{ - 0.5 , 0.0 , 0.0 , 0.5 , 0.5 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_side_stair_l 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " streets:asphalt_side " } ,
{ " " , " streets:asphalt_side " , " streets:asphalt_side " } ,
{ " streets:asphalt_side " , " streets:asphalt_side " , " streets:asphalt_side " }
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_side_stair_l 6 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " streets:asphalt_side " , " " , " " } ,
{ " streets:asphalt_side " , " streets:asphalt_side " , " " } ,
{ " streets:asphalt_side " , " streets:asphalt_side " , " streets:asphalt_side " }
}
} )
minetest.register_craft ( {
type = " shapeless " ,
output = " streets:asphalt_side_stair_r " ,
recipe = { " streets:asphalt_side_stair_l " }
} )
minetest.register_craft ( {
type = " shapeless " ,
output = " streets:asphalt_side_stair_l " ,
recipe = { " streets:asphalt_side_stair_r " }
} )
---------------------------------------------------------------------
minetest.register_node ( " :streets:asphalt_side_slab_l " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( streets.S ( " Asphalt slab " ) ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_side.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 }
}
}
} )
minetest.register_node ( " :streets:asphalt_side_slab_r " , {
2014-05-19 21:27:47 +02:00
description = streets.S ( streets.S ( " Asphalt slab " ) ) ,
2013-08-16 18:52:37 +02:00
tiles = { " streets_asphalt.png^streets_asphalt_side_r.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side_r.png " } ,
groups = { cracky = 3 } ,
paramtype = " light " ,
paramtype2 = " facedir " ,
drawtype = " nodebox " ,
node_box = {
type = " fixed " ,
fixed = {
{ - 0.5 , - 0.5 , - 0.5 , 0.5 , 0.0 , 0.5 }
}
}
} )
minetest.register_craft ( {
2013-11-24 13:22:15 +01:00
output = " streets:asphalt_side_slab_l 3 " ,
2013-08-16 18:52:37 +02:00
recipe = {
{ " " , " " , " " } ,
{ " " , " " , " " } ,
{ " streets:asphalt_side " , " streets:asphalt_side " , " streets:asphalt_side " }
}
} )
minetest.register_craft ( {
type = " shapeless " ,
output = " streets:asphalt_side_r " ,
recipe = { " streets:asphalt_side_l " }
} )
minetest.register_craft ( {
type = " shapeless " ,
output = " streets:asphalt_side_l " ,
recipe = { " streets:asphalt_side_r " }
2015-02-21 14:46:49 +01:00
} )
2016-01-09 14:51:32 -06:00
-- Asphalt
minetest.register_alias ( " streets:asphalt_stair " , " stairs:stair_asphalt " )
minetest.register_alias ( " streets:asphalt_slab " , " stairs:slab_asphalt " )
register_stair_slab_panel_micro ( " streets " , " asphalt " , " streets:asphalt " , { cracky = 3 } , { " streets_asphalt.png " } , " Asphalt " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_solid_line " , " streets:asphalt_solid_line " , { cracky = 3 } , { " streets_asphalt.png^streets_asphalt_solid_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_solid_line.png " } , " Asphalt with solid centerline " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_dashed_line " , " streets:asphalt_dashed_line " , { cracky = 3 } , { " streets_asphalt.png^streets_asphalt_dashed_line.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_dashed_line.png " } , " Asphalt with dashed centerline " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_side " , " streets:asphalt_sideline " , { cracky = 3 } , { " streets_asphalt.png^streets_asphalt_side.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side.png " } , " Asphalt with solid outer line (left) " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_side_r " , " streets:asphalt_side_r " , { cracky = 3 } , { " streets_asphalt.png^streets_asphalt_side_r.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png " , " streets_asphalt.png^streets_asphalt_side_r.png " } , " Asphalt with solid outer line (right) " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_outer_edge " , " streets:asphalt_outer_edge " , { cracky = 3 } , { " streets_asphalt.png^streets_asphalt_outer_edge.png " , " streets_asphalt.png " } , " Asphalt with solid outer line (corner/edge) " , " asphalt " , nil )
register_stair_slab_panel_micro ( " streets " , " asphalt_outer_edge_r " , " streets:asphalt_outer_edge_r " , { cracky = 3 } , { " streets_asphalt.png^(streets_asphalt_outer_edge.png^[transformR270) " , " streets_asphalt.png " } , " Asphalt with solid outer line (corner/edge, rotated) " , " asphalt " , nil )
table.insert ( circular_saw.known_stairs , " streets:asphalt " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_solid_line " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_dashed_line " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_side " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_side_r " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_outer_edge " )
table.insert ( circular_saw.known_stairs , " streets:asphalt_outer_edge_r " )