Fixed Machines
This commit is contained in:
parent
0e95325a46
commit
40446e4be2
@ -4,7 +4,7 @@ minetest.register_alias("bat_light:bat_light_cube_red", "mylights:light_cube_12
|
||||
minetest.register_alias("bat_light:bat_light_cube_blue", "mylights:light_cube_120_blue")
|
||||
minetest.register_alias("bat_light:bat_light_cube_green", "mylights:light_cube_120_green")
|
||||
minetest.register_alias("bat_light:bat_light_cube_orange", "mylights:light_cube_120_orange")
|
||||
minetest.register_alias("bat_light:sewer_light", "mylights:sewer_light")
|
||||
minetest.register_alias("bat_light:sewer_light", "mylights:sewer_light_90")
|
||||
minetest.register_alias("bat_light:bat_lantern", "mylights:lantern")
|
||||
minetest.register_alias("bat_light:bat_lpost", "mylights:lamppost")
|
||||
minetest.register_alias("bat_light:bat_lpost_top", "mylights:lpost_top")
|
||||
@ -14,3 +14,6 @@ minetest.register_alias("mylights:ceiling_light_white", "mylights:ceiling_light
|
||||
minetest.register_alias("mylights:ceiling_light_yellow", "mylights:ceiling_light_120_yellow")
|
||||
minetest.register_alias("mylights:ceiling_light_blue", "mylights:ceiling_light_120_blue")
|
||||
minetest.register_alias("mylights:lantern", "mylights:lantern_120")
|
||||
minetest.register_alias("mylights:lantern_sm", "mylights:lantern_sm_120")
|
||||
minetest.register_alias("mylights:sewer_light", "mylights:sewer_light_90")
|
||||
minetest.register_alias("mylights:ws", "mylights:ws_30")
|
||||
|
@ -10,7 +10,7 @@ for i in ipairs(ceiling_lights) do
|
||||
local item = ceiling_lights[i][3]
|
||||
|
||||
minetest.register_node("mylights:ceiling_light_30_"..color, {
|
||||
description = desc.."Ceiling light",
|
||||
description = desc.."Ceiling Light 30w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -35,7 +35,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_60_"..color, {
|
||||
description = desc.."Ceiling light",
|
||||
description = desc.."Ceiling Light 60w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -60,7 +60,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_90_"..color, {
|
||||
description = desc.."Ceiling light",
|
||||
description = desc.."Ceiling Light 90w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -85,7 +85,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_120_"..color, {
|
||||
description = desc.."Ceiling light",
|
||||
description = desc.."Ceiling Light 120w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -112,7 +112,7 @@ minetest.register_craft({
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
minetest.register_node("mylights:ceiling_light_lg_30_"..color, {
|
||||
description = desc.."Larger Ceiling light",
|
||||
description = desc.."Larger Ceiling Light 30w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -141,7 +141,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_lg_60_"..color, {
|
||||
description = desc.."Larger Ceiling light",
|
||||
description = desc.."Larger Ceiling Light 60w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -170,7 +170,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_lg_90_"..color, {
|
||||
description = desc.."Larger Ceiling light",
|
||||
description = desc.."Larger Ceiling Light 90w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -199,7 +199,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ceiling_light_lg_120_"..color, {
|
||||
description = desc.."Larger Ceiling light",
|
||||
description = desc.."Larger Ceiling Light 120w",
|
||||
tiles = {"mylights_ceiling_"..color..".png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
@ -6,22 +6,33 @@ local lbanzahl = {}
|
||||
minetest.register_node("mylights:machine", {
|
||||
description = "Light Bulb Machine",
|
||||
tiles = {
|
||||
"mylights_lightbox1_green.png^mylights_lightbulb.png",
|
||||
"mylights_lightbox1_green.png",
|
||||
"mylights_lightbox1_green.png",
|
||||
"mylights_lightbox1_green.png",
|
||||
"mylights_lightbox1_green.png",
|
||||
"mylights_lightbox1_green.png",
|
||||
{name="mylights_mach_tb.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
{name="mylights_mach_tb.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
{name="mylights_mach_side.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
{name="mylights_mach_side.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
{name="mylights_mach_side.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
{name="mylights_mach_side.png", animation={type="vertical_frames",
|
||||
aspect_w=16, aspect_h=16, length=2}},
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = 11,
|
||||
light_source = 8,
|
||||
groups = {cracky=2},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5},
|
||||
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
|
||||
{-0.1875, 0.25, -0.125, 0.1875, 0.4375, 0.125}, -- NodeBox2
|
||||
{-0.125, 0.25, -0.1875, 0.125, 0.4375, 0.1875}, -- NodeBox3
|
||||
{-0.0625, 0, -0.0625, 0.0625, 0.1875, 0.0625}, -- NodeBox5
|
||||
{-0.375, -0.5, -0.375, 0.375, 0, 0.375}, -- NodeBox6
|
||||
-- {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5},
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -7,14 +7,7 @@ local lbanzahl = {}
|
||||
minetest.register_node("mylights:machine_cubes", {
|
||||
description = "Light Box and Cube Machine",
|
||||
tiles = {
|
||||
"mylights_cube_orange.png",
|
||||
"mylights_cube_orange.png",
|
||||
|
||||
"mylights_cube_orange.png",
|
||||
"mylights_cube_orange.png",
|
||||
|
||||
"mylights_cube_orange.png",
|
||||
"mylights_cube_orange.png",
|
||||
"mylights_mach_2.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
@ -24,9 +17,23 @@ minetest.register_node("mylights:machine_cubes", {
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.3125, -0.5, -0.3125, 0.3125, -0.375, 0.3125},
|
||||
{-0.125, -0.5, -0.125, 0.125, -0.0625, 0.125},
|
||||
{-0.3125, -0.0625, -0.3125, 0.3125, 0.5, 0.3125},
|
||||
{-0.5, -0.5, -0.5, -0.375, 0.5, -0.375},
|
||||
{-0.5, -0.5, 0.375, -0.375, 0.5, 0.5},
|
||||
{0.375, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{0.375, -0.5, -0.5, 0.5, 0.5, -0.375},
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, -0.375},
|
||||
{-0.5, 0.375, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.5, 0.375, -0.5, -0.375, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, -0.375, -0.375, 0.5},
|
||||
{-0.5, -0.5, 0.375, 0.5, -0.375, 0.5},
|
||||
{0.375, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{0.375, 0.375, -0.5, 0.5, 0.5, 0.5},
|
||||
{-0.5, 0.375, -0.5, 0.5, 0.5, -0.375},
|
||||
{-0.375, -0.375, -0.375, 0.375, 0.375, 0.375},
|
||||
|
||||
-- {-0.3125, -0.5, -0.3125, 0.3125, -0.375, 0.3125},
|
||||
-- {-0.125, -0.5, -0.125, 0.125, -0.0625, 0.125},
|
||||
-- {-0.3125, -0.0625, -0.3125, 0.3125, 0.5, 0.3125},
|
||||
|
||||
}
|
||||
},
|
||||
@ -52,8 +59,9 @@ end,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
meta:set_string("formspec", "invsize[9,10;]"..
|
||||
"background[-0.15,-0.25;9.40,10.75;mylights_background.png]"..
|
||||
"background[-0.15,-0.25;9.40,10.75;mylights_background2.png]"..
|
||||
"label[0,0;Light Box and Cubes:]"..
|
||||
"label[0.5,0.5;Wool colors supported - White, Green, Red, Blue, Orange, Yellow]"..
|
||||
"label[3,1;Wool]"..
|
||||
"list[current_name;ingot1;2,1;1,1;]"..
|
||||
"label[3,2;Light Bulb]"..
|
||||
|
@ -1,9 +1,90 @@
|
||||
minetest.register_node("mylights:sewer_light", {
|
||||
description = "Sewer Light",
|
||||
minetest.register_node("mylights:sewer_light_30", {
|
||||
description = "Sewer Light 30w",
|
||||
tiles = {"mylights_sewer_light.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {snappy=2},
|
||||
groups = {snappy=2, cracky = 2},
|
||||
sunlight_propagates = true,
|
||||
light_source = 5,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
|
||||
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
|
||||
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:sewer_light_30 5",
|
||||
recipe = {
|
||||
{'','wool:black',''},
|
||||
{'','wool:yellow',''},
|
||||
{'','mylights:lightbulb30',''}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:sewer_light_60", {
|
||||
description = "Sewer Light 60w",
|
||||
tiles = {"mylights_sewer_light.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
|
||||
sunlight_propagates = true,
|
||||
light_source = 8,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
|
||||
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
|
||||
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:sewer_light_60 5",
|
||||
recipe = {
|
||||
{'','wool:black',''},
|
||||
{'','wool:yellow',''},
|
||||
{'','mylights:lightbulb60',''}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:sewer_light_90", {
|
||||
description = "Sewer Light 90w",
|
||||
tiles = {"mylights_sewer_light.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
|
||||
sunlight_propagates = true,
|
||||
light_source = 11,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, 0.125, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
|
||||
{-0.1875, 0.1875, -0.0625, 0.1875, 0.5, 0.0625}, -- NodeBox2
|
||||
{-0.0625, 0.1875, -0.1875, 0.0625, 0.5, 0.1875}, -- NodeBox3
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:sewer_light_90 5",
|
||||
recipe = {
|
||||
{'','wool:black',''},
|
||||
{'','wool:yellow',''},
|
||||
{'','mylights:lightbulb90',''}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:sewer_light_120", {
|
||||
description = "Sewer Light 120w",
|
||||
tiles = {"mylights_sewer_light.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {snappy=2, cracky = 2, not_in_creative_inventory=1},
|
||||
sunlight_propagates = true,
|
||||
light_source = 14,
|
||||
node_box = {
|
||||
@ -16,4 +97,12 @@ minetest.register_node("mylights:sewer_light", {
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:sewer_light_120 5",
|
||||
recipe = {
|
||||
{'','wool:black',''},
|
||||
{'','wool:yellow',''},
|
||||
{'','mylights:lightbulb120',''}
|
||||
}
|
||||
})
|
||||
|
BIN
textures/mylights_background2.png
Normal file
BIN
textures/mylights_background2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
textures/mylights_mach_2.png
Normal file
BIN
textures/mylights_mach_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 B |
BIN
textures/mylights_mach_side.png
Normal file
BIN
textures/mylights_mach_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 209 B |
BIN
textures/mylights_mach_tb.png
Normal file
BIN
textures/mylights_mach_tb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 239 B |
201
ws.lua
201
ws.lua
@ -1,9 +1,6 @@
|
||||
-- GENERATED CODE
|
||||
-- Node Box Editor, version 0.7 - Iron
|
||||
-- Namespace: test
|
||||
|
||||
minetest.register_node("mylights:ws", {
|
||||
description = "Wall Sconce",
|
||||
minetest.register_node("mylights:ws_30", {
|
||||
description = "Wall Sconce 30w",
|
||||
tiles = {
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_top.png",
|
||||
@ -16,28 +13,188 @@ minetest.register_node("mylights:ws", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1,snappy = 1,oddly_breakable_by_hand=1},
|
||||
light_source = 5,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.4375, 0.4375, 0.25, 0.125, 0.5},
|
||||
{-0.0625, -0.375, 0.3125, 0.0625, -0.25, 0.5},
|
||||
{-0.0625, -0.3125, 0.25, 0.0625, -0.1875, 0.375},
|
||||
{-0.0625, -0.25, 0.1875, 0.0625, -0.125, 0.3125},
|
||||
{-0.0625, -0.1875, 0.125, 0.0625, -0.0625, 0.25},
|
||||
{-0.0625, -0.125, -0.0625, 0.0625, 0, 0.1875},
|
||||
{-0.0625, -0.0625, -0.125, 0.0625, 0.0625, 0},
|
||||
{-0.1875, 0.0625, -0.125, 0.1875, 0.1875, 0},
|
||||
{-0.0625, 0.0625, -0.25, 0.0625, 0.1875, 0.125},
|
||||
{-0.0625, 0.125, 0.125, 0.0625, 0.3125, 0.1875},
|
||||
{-0.0625, 0.125, -0.3125, 0.0625, 0.3125, -0.25},
|
||||
{-0.25, 0.125, -0.125, -0.1875, 0.3125, 0},
|
||||
{0.1875, 0.125, -0.125, 0.25, 0.3125, 0},
|
||||
{-0.125, 0.125, -0.1875, 0.125, 0.4375, 0.0625},
|
||||
{-0.0625, 0.125, -0.25, 0.0625, 0.4375, 0.125},
|
||||
{-0.1875, 0.125, -0.125, 0.1875, 0.4375, 0},
|
||||
{-0.0625, 0.125, -0.125, 0.0625, 0.5, 0},
|
||||
}
|
||||
}
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:ws_30 2",
|
||||
recipe = {
|
||||
{'','mylights:lightbulb30',''},
|
||||
{'','default:steel_ingot',''},
|
||||
{'','','default:steel_ingot'}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ws_60", {
|
||||
description = "Wall Sconce 60w",
|
||||
tiles = {
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_right.png",
|
||||
"mylights_ws_left.png",
|
||||
"mylights_ws_front.png",
|
||||
"mylights_ws_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1,snappy = 1,oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
light_source = 8,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.4375, 0.4375, 0.25, 0.125, 0.5},
|
||||
{-0.0625, -0.375, 0.3125, 0.0625, -0.25, 0.5},
|
||||
{-0.0625, -0.3125, 0.25, 0.0625, -0.1875, 0.375},
|
||||
{-0.0625, -0.25, 0.1875, 0.0625, -0.125, 0.3125},
|
||||
{-0.0625, -0.1875, 0.125, 0.0625, -0.0625, 0.25},
|
||||
{-0.0625, -0.125, -0.0625, 0.0625, 0, 0.1875},
|
||||
{-0.0625, -0.0625, -0.125, 0.0625, 0.0625, 0},
|
||||
{-0.1875, 0.0625, -0.125, 0.1875, 0.1875, 0},
|
||||
{-0.0625, 0.0625, -0.25, 0.0625, 0.1875, 0.125},
|
||||
{-0.0625, 0.125, 0.125, 0.0625, 0.3125, 0.1875},
|
||||
{-0.0625, 0.125, -0.3125, 0.0625, 0.3125, -0.25},
|
||||
{-0.25, 0.125, -0.125, -0.1875, 0.3125, 0},
|
||||
{0.1875, 0.125, -0.125, 0.25, 0.3125, 0},
|
||||
{-0.125, 0.125, -0.1875, 0.125, 0.4375, 0.0625},
|
||||
{-0.0625, 0.125, -0.25, 0.0625, 0.4375, 0.125},
|
||||
{-0.1875, 0.125, -0.125, 0.1875, 0.4375, 0},
|
||||
{-0.0625, 0.125, -0.125, 0.0625, 0.5, 0},
|
||||
}
|
||||
}
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:ws_60 2",
|
||||
recipe = {
|
||||
{'','mylights:lightbulb60',''},
|
||||
{'','default:steel_ingot',''},
|
||||
{'','','default:steel_ingot'}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ws_90", {
|
||||
description = "Wall Sconce 90w",
|
||||
tiles = {
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_right.png",
|
||||
"mylights_ws_left.png",
|
||||
"mylights_ws_front.png",
|
||||
"mylights_ws_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1,snappy = 1,oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
light_source = 11,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.4375, 0.4375, 0.25, 0.125, 0.5}, -- NodeBox1
|
||||
{-0.0625, -0.375, 0.3125, 0.0625, -0.25, 0.5}, -- NodeBox2
|
||||
{-0.0625, -0.3125, 0.25, 0.0625, -0.1875, 0.375}, -- NodeBox3
|
||||
{-0.0625, -0.25, 0.1875, 0.0625, -0.125, 0.3125}, -- NodeBox4
|
||||
{-0.0625, -0.1875, 0.125, 0.0625, -0.0625, 0.25}, -- NodeBox5
|
||||
{-0.0625, -0.125, -0.0625, 0.0625, 0, 0.1875}, -- NodeBox6
|
||||
{-0.0625, -0.0625, -0.125, 0.0625, 0.0625, 0}, -- NodeBox7
|
||||
{-0.1875, 0.0625, -0.125, 0.1875, 0.1875, 0}, -- NodeBox8
|
||||
{-0.0625, 0.0625, -0.25, 0.0625, 0.1875, 0.125}, -- NodeBox9
|
||||
{-0.0625, 0.125, 0.125, 0.0625, 0.3125, 0.1875}, -- NodeBox10
|
||||
{-0.0625, 0.125, -0.3125, 0.0625, 0.3125, -0.25}, -- NodeBox11
|
||||
{-0.25, 0.125, -0.125, -0.1875, 0.3125, 0}, -- NodeBox12
|
||||
{0.1875, 0.125, -0.125, 0.25, 0.3125, 0}, -- NodeBox13
|
||||
{-0.125, 0.125, -0.1875, 0.125, 0.4375, 0.0625}, -- NodeBox14
|
||||
{-0.0625, 0.125, -0.25, 0.0625, 0.4375, 0.125}, -- NodeBox15
|
||||
{-0.1875, 0.125, -0.125, 0.1875, 0.4375, 0}, -- NodeBox16
|
||||
{-0.0625, 0.125, -0.125, 0.0625, 0.5, 0}, -- NodeBox17
|
||||
{-0.25, -0.4375, 0.4375, 0.25, 0.125, 0.5},
|
||||
{-0.0625, -0.375, 0.3125, 0.0625, -0.25, 0.5},
|
||||
{-0.0625, -0.3125, 0.25, 0.0625, -0.1875, 0.375},
|
||||
{-0.0625, -0.25, 0.1875, 0.0625, -0.125, 0.3125},
|
||||
{-0.0625, -0.1875, 0.125, 0.0625, -0.0625, 0.25},
|
||||
{-0.0625, -0.125, -0.0625, 0.0625, 0, 0.1875},
|
||||
{-0.0625, -0.0625, -0.125, 0.0625, 0.0625, 0},
|
||||
{-0.1875, 0.0625, -0.125, 0.1875, 0.1875, 0},
|
||||
{-0.0625, 0.0625, -0.25, 0.0625, 0.1875, 0.125},
|
||||
{-0.0625, 0.125, 0.125, 0.0625, 0.3125, 0.1875},
|
||||
{-0.0625, 0.125, -0.3125, 0.0625, 0.3125, -0.25},
|
||||
{-0.25, 0.125, -0.125, -0.1875, 0.3125, 0},
|
||||
{0.1875, 0.125, -0.125, 0.25, 0.3125, 0},
|
||||
{-0.125, 0.125, -0.1875, 0.125, 0.4375, 0.0625},
|
||||
{-0.0625, 0.125, -0.25, 0.0625, 0.4375, 0.125},
|
||||
{-0.1875, 0.125, -0.125, 0.1875, 0.4375, 0},
|
||||
{-0.0625, 0.125, -0.125, 0.0625, 0.5, 0},
|
||||
}
|
||||
}
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:ws_90 2",
|
||||
recipe = {
|
||||
{'','mylights:lightbulb90',''},
|
||||
{'','default:steel_ingot',''},
|
||||
{'','','default:steel_ingot'}
|
||||
}
|
||||
})
|
||||
minetest.register_node("mylights:ws_120", {
|
||||
description = "Wall Sconce 120w",
|
||||
tiles = {
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_top.png",
|
||||
"mylights_ws_right.png",
|
||||
"mylights_ws_left.png",
|
||||
"mylights_ws_front.png",
|
||||
"mylights_ws_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky=1,snappy = 1,oddly_breakable_by_hand=1, not_in_creative_inventory=1},
|
||||
light_source = 14,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.4375, 0.4375, 0.25, 0.125, 0.5},
|
||||
{-0.0625, -0.375, 0.3125, 0.0625, -0.25, 0.5},
|
||||
{-0.0625, -0.3125, 0.25, 0.0625, -0.1875, 0.375},
|
||||
{-0.0625, -0.25, 0.1875, 0.0625, -0.125, 0.3125},
|
||||
{-0.0625, -0.1875, 0.125, 0.0625, -0.0625, 0.25},
|
||||
{-0.0625, -0.125, -0.0625, 0.0625, 0, 0.1875},
|
||||
{-0.0625, -0.0625, -0.125, 0.0625, 0.0625, 0},
|
||||
{-0.1875, 0.0625, -0.125, 0.1875, 0.1875, 0},
|
||||
{-0.0625, 0.0625, -0.25, 0.0625, 0.1875, 0.125},
|
||||
{-0.0625, 0.125, 0.125, 0.0625, 0.3125, 0.1875},
|
||||
{-0.0625, 0.125, -0.3125, 0.0625, 0.3125, -0.25},
|
||||
{-0.25, 0.125, -0.125, -0.1875, 0.3125, 0},
|
||||
{0.1875, 0.125, -0.125, 0.25, 0.3125, 0},
|
||||
{-0.125, 0.125, -0.1875, 0.125, 0.4375, 0.0625},
|
||||
{-0.0625, 0.125, -0.25, 0.0625, 0.4375, 0.125},
|
||||
{-0.1875, 0.125, -0.125, 0.1875, 0.4375, 0},
|
||||
{-0.0625, 0.125, -0.125, 0.0625, 0.5, 0},
|
||||
}
|
||||
}
|
||||
})
|
||||
--craft
|
||||
minetest.register_craft({
|
||||
output = "mylights:ws_120 2",
|
||||
recipe = {
|
||||
{'','mylights:lightbulb120',''},
|
||||
{'','default:steel_ingot',''},
|
||||
{'','','default:steel_ingot'}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user