2021-12-21 07:15:17 -08:00
|
|
|
local S = minetest.get_translator("lzr_laser")
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:mirror", {
|
|
|
|
description = S("Mirror"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_mirror_top.png",
|
2021-12-21 11:32:54 -08:00
|
|
|
"lzr_laser_mirror_top.png^[transformFY",
|
2021-12-21 07:15:17 -08:00
|
|
|
"lzr_laser_mirror_hole.png",
|
|
|
|
"lzr_laser_mirror_block.png",
|
|
|
|
"lzr_laser_mirror_block.png",
|
|
|
|
"lzr_laser_mirror_hole.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { mirror = 1, laser_block = 1, dig_immediate = 2 },
|
|
|
|
_lzr_active = "lzr_laser:mirror_on",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:mirror_on", {
|
|
|
|
description = S("Mirror (active)"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_mirror_on_top.png",
|
|
|
|
"lzr_laser_mirror_on_top.png^[transformFY",
|
|
|
|
"lzr_laser_mirror_on_hole.png",
|
|
|
|
"lzr_laser_mirror_on_block.png",
|
|
|
|
"lzr_laser_mirror_on_block.png",
|
|
|
|
"lzr_laser_mirror_on_hole.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { mirror = 2, laser_block = 1, dig_immediate = 2, not_in_creative_inventory = 1 },
|
|
|
|
_lzr_inactive = "lzr_laser:mirror",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:emitter", {
|
|
|
|
description = S("Emitter"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_emitter.png",
|
|
|
|
"lzr_laser_emitter.png",
|
|
|
|
"lzr_laser_emitter.png",
|
|
|
|
"lzr_laser_emitter.png",
|
|
|
|
"lzr_laser_emitter.png",
|
|
|
|
"lzr_laser_emitter_front.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { emitter = 1, laser_block = 1, dig_immediate = 2 },
|
|
|
|
_lzr_active = "lzr_laser:emitter_on",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:emitter_on", {
|
|
|
|
description = S("Emitter (active)"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_emitter_on.png",
|
|
|
|
"lzr_laser_emitter_on.png",
|
|
|
|
"lzr_laser_emitter_on.png",
|
|
|
|
"lzr_laser_emitter_on.png",
|
|
|
|
"lzr_laser_emitter_on.png",
|
|
|
|
"lzr_laser_emitter_on_front.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { emitter = 2, laser_block = 1, dig_immediate = 2, not_in_creative_inventory = 1 },
|
|
|
|
_lzr_inactive = "lzr_laser:emitter",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:detector", {
|
|
|
|
description = S("Detector"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_detector.png",
|
|
|
|
"lzr_laser_detector.png",
|
|
|
|
"lzr_laser_detector.png",
|
|
|
|
"lzr_laser_detector.png",
|
|
|
|
"lzr_laser_detector.png",
|
|
|
|
"lzr_laser_detector_front.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { detector = 1, laser_block = 1, dig_immediate = 2 },
|
|
|
|
_lzr_active = "lzr_laser:detector_on",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("lzr_laser:detector_on", {
|
|
|
|
description = S("Detector (active)"),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
tiles = {
|
|
|
|
"lzr_laser_detector_on.png",
|
|
|
|
"lzr_laser_detector_on.png",
|
|
|
|
"lzr_laser_detector_on.png",
|
|
|
|
"lzr_laser_detector_on.png",
|
|
|
|
"lzr_laser_detector_on.png",
|
|
|
|
"lzr_laser_detector_on_front.png",
|
|
|
|
},
|
2021-12-21 08:45:26 -08:00
|
|
|
groups = { detector = 2, laser_block = 1, dig_immediate = 2, not_in_creative_inventory = 1 },
|
|
|
|
_lzr_inactive = "lzr_laser:detector",
|
2021-12-21 07:15:17 -08:00
|
|
|
})
|
|
|
|
|