Added additional autoplace code for wall lights to turn them into ceiling

lights where appropriate.  Added a number of alternate crafting recipes to
split thick wall lights into thin regular ones or into cubes, and to recycle
excess cubes.
This commit is contained in:
Vanessa Ezekowitz
2013-04-14 16:22:08 -04:00
parent 0c0ee930f9
commit d0c62410f8
2 changed files with 204 additions and 2 deletions

View File

@ -1177,6 +1177,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "homedecor:glowlight_thin_yellow 6",
recipe = {
{"homedecor:glowlight_thick_yellow_wall", "homedecor:glowlight_thick_yellow_wall", "homedecor:glowlight_thick_yellow_wall" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_yellow 16",
recipe = {
@ -1185,6 +1192,20 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_yellow 4",
recipe = {
{"homedecor:glowlight_thick_yellow" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_yellow 4",
recipe = {
{"homedecor:glowlight_thick_yellow_wall" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_thick_yellow",
recipe = {
@ -1193,6 +1214,14 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "homedecor:glowlight_thick_yellow",
recipe = {
{"homedecor:glowlight_small_cube_yellow_ceiling","homedecor:glowlight_small_cube_yellow_ceiling"},
{"homedecor:glowlight_small_cube_yellow_ceiling","homedecor:glowlight_small_cube_yellow_ceiling"}
}
})
-- white
minetest.register_craft({
@ -1220,6 +1249,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "homedecor:glowlight_thin_white 6",
recipe = {
{"homedecor:glowlight_thick_white_wall", "homedecor:glowlight_thick_white_wall", "homedecor:glowlight_thick_white_wall" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_white 8",
recipe = {
@ -1228,6 +1264,20 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_white 4",
recipe = {
{"homedecor:glowlight_thick_white" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_small_cube_white 4",
recipe = {
{"homedecor:glowlight_thick_white_wall" },
}
})
minetest.register_craft({
output = "homedecor:glowlight_thick_white",
recipe = {