diff options
author | Christian Danscheid <Christian_D_97@gmx.de> | 2013-08-10 19:23:52 +0200 |
---|---|---|
committer | Christian Danscheid <Christian_D_97@gmx.de> | 2013-08-10 19:23:52 +0200 |
commit | 7bda846ea7f8c3ad127b167e6c7a797bfd46f73f (patch) | |
tree | 37c4d4cc80cb2b11452d24df057e485c54687eb4 /streetsconcrete | |
download | roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.gz roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.bz2 roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.tar.xz roads-7bda846ea7f8c3ad127b167e6c7a797bfd46f73f.zip |
Initial commit
Diffstat (limited to 'streetsconcrete')
-rw-r--r-- | streetsconcrete/depends.txt | 2 | ||||
-rw-r--r-- | streetsconcrete/init.lua | 109 | ||||
-rw-r--r-- | streetsconcrete/textures/streets_concrete.png | bin | 0 -> 1977 bytes |
3 files changed, 111 insertions, 0 deletions
diff --git a/streetsconcrete/depends.txt b/streetsconcrete/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/streetsconcrete/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod
\ No newline at end of file diff --git a/streetsconcrete/init.lua b/streetsconcrete/init.lua new file mode 100644 index 0000000..ffb826a --- /dev/null +++ b/streetsconcrete/init.lua @@ -0,0 +1,109 @@ +--[[ + StreetsMod: Concrete, Concrete wall (flat), Concrete wall (full) +]] +minetest.register_alias("streets:concrete","technic:concrete") +if streets.extendedBy.technic == true then + -- Use technic's concrete block for the seperating wall + minetest.register_node(":streets:concrete_wall",{ + description = "Conrete wall", + tiles = {"technic_concrete_block.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.5, 0.4, -0.4, 0.5}, + {-0.1, -0.4, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall", + recipe = { + {"","technic:conrete",""}, + {"","technic:concrete",""}, + {"technic:concrete","technic:concrete","technic:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = "Conrete wall", + tiles = {"technic_concrete_block.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall_flat 3", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"","",""} + } + }) +else + -- Register technic's concrete block with streets's texture and then the seperating wall + minetest.register_node(":technic:concrete",{ + description = "Concrete", + tiles = {"streets_concrete.png"}, + groups = {cracky=2} + }) + minetest.register_node(":streets:concrete_wall",{ + description = "Conrete wall", + tiles = {"streets_concrete.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.5, 0.4, -0.4, 0.5}, + {-0.1, -0.4, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall 5", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"technic:concrete","technic:concrete","technic:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = "Conrete wall", + tiles = {"streets_concrete.png"}, + groups = {cracky=2}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.1, -0.5, -0.5, 0.1, 0.5, 0.5} + } + } + }) + minetest.register_craft({ + output = "streets:concrete_wall_flat 3", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"","",""} + } + }) + minetest.register_craft({ + type = "shapeless", + output = "technic:concrete", + recipe = {"default:stone"} + }) +end
\ No newline at end of file diff --git a/streetsconcrete/textures/streets_concrete.png b/streetsconcrete/textures/streets_concrete.png Binary files differnew file mode 100644 index 0000000..64fcb85 --- /dev/null +++ b/streetsconcrete/textures/streets_concrete.png |