mirror of
https://github.com/theFox6/microexpansion.git
synced 2024-11-22 07:03:45 +01:00
Power: Add Controller
This commit is contained in:
parent
f86e433680
commit
4d97ea6d80
39
modules/power/ctrl.lua
Normal file
39
modules/power/ctrl.lua
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
-- ctrl.lua
|
||||||
|
--[[
|
||||||
|
WARNING: this is the MAIN power controller, be very careful when making changed.
|
||||||
|
]]
|
||||||
|
|
||||||
|
local me = microexpansion
|
||||||
|
|
||||||
|
-- [register node] Controller
|
||||||
|
me.register_node("ctrl", {
|
||||||
|
description = "Power Controller",
|
||||||
|
tiles = {
|
||||||
|
"ctrl_sides",
|
||||||
|
"ctrl_bottom",
|
||||||
|
"ctrl_sides",
|
||||||
|
"ctrl_sides",
|
||||||
|
"ctrl_sides",
|
||||||
|
"ctrl_sides"
|
||||||
|
},
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.375, -0.375, -0.375, 0.375, 0.375, 0.375}, -- Core
|
||||||
|
{0.1875, -0.5, -0.5, 0.5, 0.5, -0.1875}, -- Corner1
|
||||||
|
{-0.5, -0.5, -0.5, -0.1875, 0.5, -0.1875}, -- Corner2
|
||||||
|
{-0.5, -0.5, 0.1875, -0.1875, 0.5, 0.5}, -- Corner3
|
||||||
|
{0.1875, -0.5, 0.1875, 0.5, 0.5, 0.5}, -- Corner4
|
||||||
|
{-0.5, -0.4375, -0.5, 0.5, -0.1875, 0.5}, -- Bottom
|
||||||
|
{-0.5, 0.1875, -0.5, 0.5, 0.5, -0.1875}, -- Top1
|
||||||
|
{0.1875, 0.1875, -0.5, 0.5, 0.5, 0.5}, -- Top2
|
||||||
|
{-0.5, 0.1875, -0.5, -0.1875, 0.5, 0.5}, -- Top3
|
||||||
|
{-0.5, 0.1875, 0.1875, 0.5, 0.5, 0.5}, -- Top4
|
||||||
|
{-0.1875, -0.5, -0.1875, 0.1875, -0.25, 0.1875}, -- Bottom2
|
||||||
|
},
|
||||||
|
},
|
||||||
|
groups = { cracky = 1 },
|
||||||
|
status = "no",
|
||||||
|
})
|
@ -6,4 +6,5 @@ local path = microexpansion.get_module_path("power")
|
|||||||
|
|
||||||
-- Load Resources
|
-- Load Resources
|
||||||
|
|
||||||
|
dofile(path.."/ctrl.lua") -- Controller
|
||||||
dofile(path.."/gen.lua") -- Generators
|
dofile(path.."/gen.lua") -- Generators
|
||||||
|
BIN
textures/microexpansion_ctrl_bottom.png
Normal file
BIN
textures/microexpansion_ctrl_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 B |
BIN
textures/microexpansion_ctrl_sides.png
Normal file
BIN
textures/microexpansion_ctrl_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 B |
Loading…
Reference in New Issue
Block a user