summaryrefslogtreecommitdiff
path: root/streetsconcrete
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-07 17:53:37 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-11-07 18:22:15 -0500
commit28a7d1cc43f028e7277d6d416f68322221c8aef7 (patch)
tree16f22dffc320983dc91bbf817bb7431326c6c45e /streetsconcrete
parent27737e07d58afc6e4e6ce1e50b7f8f9d38d88250 (diff)
downloadroads-28a7d1cc43f028e7277d6d416f68322221c8aef7.tar
roads-28a7d1cc43f028e7277d6d416f68322221c8aef7.tar.gz
roads-28a7d1cc43f028e7277d6d416f68322221c8aef7.tar.bz2
roads-28a7d1cc43f028e7277d6d416f68322221c8aef7.tar.xz
roads-28a7d1cc43f028e7277d6d416f68322221c8aef7.zip
use basic_materials for concrete
Diffstat (limited to 'streetsconcrete')
-rw-r--r--streetsconcrete/depends.txt3
-rw-r--r--streetsconcrete/init.lua122
2 files changed, 10 insertions, 115 deletions
diff --git a/streetsconcrete/depends.txt b/streetsconcrete/depends.txt
index 48ef5e1..cc05de9 100644
--- a/streetsconcrete/depends.txt
+++ b/streetsconcrete/depends.txt
@@ -1,2 +1,3 @@
default
-streetsmod \ No newline at end of file
+streetsmod
+basic_materials
diff --git a/streetsconcrete/init.lua b/streetsconcrete/init.lua
index cb29ee9..494157c 100644
--- a/streetsconcrete/init.lua
+++ b/streetsconcrete/init.lua
@@ -1,12 +1,11 @@
--[[
StreetsMod: Concrete, Concrete wall (flat), Concrete wall (full)
]]
-if streets.extendedBy.technic == true then
- minetest.register_alias("streets:concrete","technic:concrete")
+ minetest.register_alias("streets:concrete","basic_materials:concrete_block")
-- 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"},
+ tiles = {"basic_materials_concrete_block.png"},
groups = {cracky=2},
drawtype = "nodebox",
paramtype = "light",
@@ -22,14 +21,14 @@ if streets.extendedBy.technic == true then
minetest.register_craft({
output = "streets:concrete_wall 3",
recipe = {
- {"","technic:concrete",""},
- {"","technic:concrete",""},
- {"technic:concrete","technic:concrete","technic:concrete"}
+ {"","basic_materials:concrete_block",""},
+ {"","basic_materials:concrete_block",""},
+ {"basic_materials:concrete_block","basic_materials:concrete_block","basic_materials:concrete_block"}
}
})
minetest.register_node(":streets:concrete_wall_flat",{
description = streets.S("Concrete wall"),
- tiles = {"technic_concrete_block.png"},
+ tiles = {"basic_materials_concrete_block.png"},
groups = {cracky=2},
drawtype = "nodebox",
paramtype = "light",
@@ -44,113 +43,8 @@ if streets.extendedBy.technic == true then
minetest.register_craft({
output = "streets:concrete_wall_flat 3",
recipe = {
- {"","technic:concrete",""},
- {"","technic:concrete",""},
+ {"","basic_materials:concrete_block",""},
+ {"","basic_materials:concrete_block",""},
{"","",""}
}
})
-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