This commit is contained in:
BuckarooBanzay 2024-06-20 15:25:23 +02:00
commit 2de6325e34
7 changed files with 47 additions and 0 deletions

9
.luacheckrc Normal file
View File

@ -0,0 +1,9 @@
std = "minetest+min"
globals = {
"neon"
}
read_globals = {
"unifieddyes"
}

36
init.lua Normal file
View 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

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = neon
depends = unifieddyes

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

BIN
textures/neon_circle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
textures/neon_cross.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B