add corruption crystal node

master
capitalthree 5 months ago
parent 75d91aa837
commit 3741e5e765
  1. 1
      .gitignore
  2. 2
      init.lua
  3. 23
      nodes.lua

1
.gitignore vendored

@ -0,0 +1 @@
/.idea

@ -5,4 +5,4 @@ local include, nodecore
kc_violetcorruption = {}
--todo: include("")
include("nodes")

@ -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
})
Loading…
Cancel
Save