commit 2de6325e34e736942880d057960f37506ebfe57a Author: BuckarooBanzay Date: Thu Jun 20 15:25:23 2024 +0200 init diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..a884d08 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,9 @@ +std = "minetest+min" + +globals = { + "neon" +} + +read_globals = { + "unifieddyes" +} diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..75d19d3 --- /dev/null +++ b/init.lua @@ -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 \ No newline at end of file diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..71bde51 --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = neon +depends = unifieddyes \ No newline at end of file diff --git a/textures/neon_box.png b/textures/neon_box.png new file mode 100644 index 0000000..d72302a Binary files /dev/null and b/textures/neon_box.png differ diff --git a/textures/neon_box_top.png b/textures/neon_box_top.png new file mode 100644 index 0000000..465d6f8 Binary files /dev/null and b/textures/neon_box_top.png differ diff --git a/textures/neon_circle.png b/textures/neon_circle.png new file mode 100644 index 0000000..80e219e Binary files /dev/null and b/textures/neon_circle.png differ diff --git a/textures/neon_cross.png b/textures/neon_cross.png new file mode 100644 index 0000000..da47d45 Binary files /dev/null and b/textures/neon_cross.png differ