Add files via upload

This commit is contained in:
loosewheel
2021-11-06 21:46:50 +10:00
committed by GitHub
parent 53492183a1
commit 3692738a74
17 changed files with 3456 additions and 0 deletions

88
extras.lua Normal file
View File

@@ -0,0 +1,88 @@
local utils = ...
local S = utils.S
local touchscreen = minetest.registered_nodes["digistuff:touchscreen"]
if touchscreen then
local touchblock = table.copy (touchscreen)
touchblock.description = S("LWComponents Touchscreen")
touchblock.node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
touchblock.selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
touchblock.collision_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
minetest.register_node ("lwcomponents:touchscreen", touchblock)
minetest.register_craft({
output = "lwcomponents:touchscreen",
recipe = {
{"mesecons_luacontroller:luacontroller0000","default:glass","default:glass"},
{"default:glass","digilines:lcd","default:glass"},
{"default:glass","default:glass","default:stone"}
}
})
end
local panel = minetest.registered_nodes["digistuff:panel"]
if panel then
local panelblock = table.copy (panel)
panelblock.description = S("LWComponents Control Panel")
panelblock.node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
panelblock.selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
panelblock.collision_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
}
}
minetest.register_node ("lwcomponents:panel", panelblock)
minetest.register_craft({
output = "lwcomponents:panel",
recipe = {
{"","digistuff:button",""},
{"digistuff:button","digilines:lcd","digistuff:button"},
{"","digistuff:button","default:stone"}
}
})
end
--