diff options
author | Christian <Christian_D_97@gmx.de> | 2013-11-24 11:14:19 -0800 |
---|---|---|
committer | Christian <Christian_D_97@gmx.de> | 2013-11-24 11:14:19 -0800 |
commit | 72081ea604af282ae7a5304dfcc689d8de735756 (patch) | |
tree | 161ca95e5fce06902ab9dc91b7644c632b0b448d /asphaltstairs | |
parent | d04d0c142f3826729c289ea52df1e85ad104dfdc (diff) | |
parent | 4fab78d25b26bb9111aa5d5da0511c8395f0c5ca (diff) | |
download | roads-72081ea604af282ae7a5304dfcc689d8de735756.tar roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.gz roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.bz2 roads-72081ea604af282ae7a5304dfcc689d8de735756.tar.xz roads-72081ea604af282ae7a5304dfcc689d8de735756.zip |
Merge pull request #3 from webdesigner97/indev
new release
Diffstat (limited to 'asphaltstairs')
-rw-r--r-- | asphaltstairs/function.lua | 56 | ||||
-rw-r--r-- | asphaltstairs/init.lua | 23 |
2 files changed, 11 insertions, 68 deletions
diff --git a/asphaltstairs/function.lua b/asphaltstairs/function.lua deleted file mode 100644 index 9879d4c..0000000 --- a/asphaltstairs/function.lua +++ /dev/null @@ -1,56 +0,0 @@ --- StreetsMod needs a special slab definition, so it needs its own register_stair_and_slab -streets.register_stair_and_slab = function(node,desc,tile,item) - minetest.register_node(":streets:"..node.."_stair",{ - description = desc.."stair", - groups = {cracky = 3}, - tiles = tile, - paramtype = "light", - paramtype2 = "facedir", - drawtype = "nodebox", - node_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} - } - } - }) - minetest.register_node(":streets:"..node.."_slab",{ - description = desc.." slab", - groups = {cracky = 3}, - tiles = tile, - paramtype = "light", - paramtype2 = "facedir", - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, - } - } - }) - minetest.register_craft({ - output = "streets:"..node.."_stair 4", - recipe = { - {"","",item}, - {"",item,item}, - {item,item,item} - } - }) - minetest.register_craft({ - output = "streets:"..node.."_stair 4", - recipe = { - {item,"",""}, - {item,item,""}, - {item,item,item} - } - }) - minetest.register_craft({ - output = "streets:"..node.."_slab 3", - recipe = { - {"","",""}, - {"","",""}, - {item,item,item} - } - }) -end
\ No newline at end of file diff --git a/asphaltstairs/init.lua b/asphaltstairs/init.lua index 7c1c181..a7ec32b 100644 --- a/asphaltstairs/init.lua +++ b/asphaltstairs/init.lua @@ -1,7 +1,7 @@ --[[ StreetsMod: Asphalt stairs ]] -if streets.extendedBy.moreblocks == true then +if type(register_stair_slab_panel_micro) ~= "function" then return end -- Asphalt register_stair_slab_panel_micro("streets", "asphalt", "streets:asphalt", {cracky=3}, {"streets_asphalt.png"}, "Asphalt", "asphalt", nil) minetest.register_alias("streets:asphalt_stair","stairs:stair_asphalt") @@ -25,7 +25,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_solid_line_stair", + output = "streets:asphalt_solid_line_stair 6", recipe = { {"","","streets:asphalt_solid_line"}, {"","streets:asphalt_solid_line","streets:asphalt_solid_line"}, @@ -33,7 +33,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_solid_line_stair", + output = "streets:asphalt_solid_line_stair 6", recipe = { {"streets:asphalt_solid_line","",""}, {"streets:asphalt_solid_line","streets:asphalt_solid_line",""}, @@ -56,7 +56,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_solid_line_slab", + output = "streets:asphalt_solid_line_slab 3", recipe = { {"","",""}, {"","",""}, @@ -82,7 +82,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_dashed_line_stair", + output = "streets:asphalt_dashed_line_stair 6", recipe = { {"","","streets:asphalt_dashed_line"}, {"","streets:asphalt_dashed_line","streets:asphalt_dashed_line"}, @@ -90,7 +90,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_dashed_line_stair", + output = "streets:asphalt_dashed_line_stair 6", recipe = { {"streets:asphalt_dashed_line","",""}, {"streets:asphalt_dashed_line","streets:asphalt_dashed_line",""}, @@ -113,7 +113,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_dashed_line_slab", + output = "streets:asphalt_dashed_line_slab 3", recipe = { {"","",""}, {"","",""}, @@ -153,7 +153,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_side_stair_l", + output = "streets:asphalt_side_stair_l 6", recipe = { {"","","streets:asphalt_side"}, {"","streets:asphalt_side","streets:asphalt_side"}, @@ -161,7 +161,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_side_stair_l", + output = "streets:asphalt_side_stair_l 6", recipe = { {"streets:asphalt_side","",""}, {"streets:asphalt_side","streets:asphalt_side",""}, @@ -208,7 +208,7 @@ if streets.extendedBy.moreblocks == true then } }) minetest.register_craft({ - output = "streets:asphalt_side_slab_l", + output = "streets:asphalt_side_slab_l 3", recipe = { {"","",""}, {"","",""}, @@ -224,5 +224,4 @@ if streets.extendedBy.moreblocks == true then type = "shapeless", output = "streets:asphalt_side_l", recipe = {"streets:asphalt_side_r"} - }) -end
\ No newline at end of file + })
\ No newline at end of file |