-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get rid of crap; register microblocks properly
- Loading branch information
1 parent
514874a
commit bb245d6
Showing
1 changed file
with
58 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,156 +1,64 @@ | ||
--[[ | ||
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} | ||
} | ||
-- 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 = { | ||
{"","technic:concrete",""}, | ||
{"","technic:concrete",""}, | ||
{"technic:concrete","technic:concrete","technic:concrete"} | ||
} | ||
}) | ||
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_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"} | ||
}) | ||
} | ||
}) | ||
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"} | ||
}) | ||
|
||
if streets.extendedBy.moreblocks then | ||
local def = minetest.registered_nodes["streets:concrete"] | ||
stairsplus:register_all("streets", "concrete", "streets:concrete", def) | ||
end |