init
This commit is contained in:
commit
2de6325e34
9
.luacheckrc
Normal file
9
.luacheckrc
Normal file
@ -0,0 +1,9 @@
|
||||
std = "minetest+min"
|
||||
|
||||
globals = {
|
||||
"neon"
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
"unifieddyes"
|
||||
}
|
36
init.lua
Normal file
36
init.lua
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
local defs = {
|
||||
{ suffix = "box" },
|
||||
{ suffix = "circle" },
|
||||
{ suffix = "cross" },
|
||||
{
|
||||
suffix = "box_top",
|
||||
tiles = {
|
||||
"neon_box.png",
|
||||
"blank.png",
|
||||
"neon_box_top.png"
|
||||
},
|
||||
use_texture_alpha = "blend",
|
||||
drawtype = "normal"
|
||||
}
|
||||
}
|
||||
|
||||
for _, def in pairs(defs) do
|
||||
minetest.register_node("neon:" .. def.suffix, {
|
||||
description = "Neon " .. def.suffix,
|
||||
tiles = def.tiles or {"neon_" .. def.suffix .. ".png"},
|
||||
groups = {
|
||||
cracky = 1,
|
||||
ud_param2_colorable = 1
|
||||
},
|
||||
use_texture_alpha = def.use_texture_alpha,
|
||||
is_ground_content = false,
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "color",
|
||||
drawtype = def.drawtype or "glasslike",
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
on_construct = unifieddyes.on_construct,
|
||||
on_dig = unifieddyes.on_dig
|
||||
})
|
||||
end
|
BIN
textures/neon_box.png
Normal file
BIN
textures/neon_box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 591 B |
BIN
textures/neon_box_top.png
Normal file
BIN
textures/neon_box_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 588 B |
BIN
textures/neon_circle.png
Normal file
BIN
textures/neon_circle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 653 B |
BIN
textures/neon_cross.png
Normal file
BIN
textures/neon_cross.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 652 B |
Loading…
x
Reference in New Issue
Block a user