diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09c56d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea diff --git a/init.lua b/init.lua index 7eb7b09..33023f5 100755 --- a/init.lua +++ b/init.lua @@ -5,4 +5,4 @@ local include, nodecore kc_violetcorruption = {} ---todo: include("") +include("nodes") diff --git a/nodes.lua b/nodes.lua new file mode 100644 index 0000000..8ffd3d0 --- /dev/null +++ b/nodes.lua @@ -0,0 +1,23 @@ +-- LUALOCALS < --------------------------------------------------------- +local include, nodecore += include, nodecore +-- LUALOCALS > --------------------------------------------------------- + +local modname = minetest.get_current_modname() + +minetest.register_node(":corruptioncrystal", { + description = "Corruption Crystal", + + mapcolor = { r = 255, g = 0, b = 255 }, -- todo: refine mapcolor if desired + + groups = { + snappy = 1, -- todo: choose mining tool? + falling_node = 1, -- todo: decide if you want this (and falling_repose) + falling_repose = 1, + optic_opaque = 1, + stack_as_node = 1, -- todo: decide if you want this + }, + + tiles = {"kc_corruption_source.png"}, + sounds = nodecore.sounds("nc_optics_glassy"), -- todo custom sounds +}) \ No newline at end of file