diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 20:02:19 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:09:33 -0400 |
commit | da66780a569712c23ae4f2996cfb4608a9f9d69d (patch) | |
tree | 217556029a78bc23ad4564720afc86de97228a04 /streets/streetsconcrete | |
parent | 615b22df4d423aded3613db7716943a2f389b047 (diff) | |
download | dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2 dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip |
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'streets/streetsconcrete')
-rw-r--r-- | streets/streetsconcrete/depends.txt | 2 | ||||
-rw-r--r-- | streets/streetsconcrete/init.lua | 156 |
2 files changed, 158 insertions, 0 deletions
diff --git a/streets/streetsconcrete/depends.txt b/streets/streetsconcrete/depends.txt new file mode 100644 index 0000000..48ef5e1 --- /dev/null +++ b/streets/streetsconcrete/depends.txt @@ -0,0 +1,2 @@ +default +streetsmod
\ No newline at end of file diff --git a/streets/streetsconcrete/init.lua b/streets/streetsconcrete/init.lua new file mode 100644 index 0000000..cb29ee9 --- /dev/null +++ b/streets/streetsconcrete/init.lua @@ -0,0 +1,156 @@ +--[[ + StreetsMod: Concrete, Concrete wall (flat), Concrete wall (full) +]] +if streets.extendedBy.technic == true then + minetest.register_alias("streets:concrete","technic:concrete") + -- Use technic's concrete block for the seperating wall + minetest.register_node(":streets:concrete_wall",{ + description = streets.S("Concrete 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 3", + recipe = { + {"","technic:concrete",""}, + {"","technic:concrete",""}, + {"technic:concrete","technic:concrete","technic:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = streets.S("Concrete 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",""}, + {"","",""} + } + }) +elseif streets.extendedBy.prefab then + minetest.register_alias("streets:concrete","prefab:concrete") + minetest.register_node(":streets:concrete_wall",{ + description = streets.S("Concrete wall"), + tiles = {"prefab_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 3", + recipe = { + {"","streets:concrete",""}, + {"","streets:concrete",""}, + {"streets:concrete","streets:concrete","streets:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = streets.S("Concrete wall"), + tiles = {"prefab_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 = { + {"","streets:concrete",""}, + {"","streets:concrete",""}, + {"","",""} + } + }) +else + -- Register concrete block with streets' texture and then the seperating wall + minetest.register_node(":streets:concrete",{ + description = streets.S("Concrete"), + tiles = {"streets_concrete.png"}, + groups = {cracky=2} + }) + minetest.register_node(":streets:concrete_wall",{ + description = streets.S("Concrete 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 3", + recipe = { + {"","streets:concrete",""}, + {"","streets:concrete",""}, + {"streets:concrete","streets:concrete","streets:concrete"} + } + }) + minetest.register_node(":streets:concrete_wall_flat",{ + description = streets.S("Concrete 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 = { + {"","streets:concrete",""}, + {"","streets:concrete",""}, + {"","",""} + } + }) + minetest.register_craft({ + type = "shapeless", + output = "streets:concrete", + recipe = {"default:stone"} + }) +end |