Initial commit

main
copygirl 1 year ago
commit 6051230af4
  1. 9
      .editorconfig
  2. 6
      README.md
  3. 37
      init.lua
  4. 5
      mod.conf

@ -0,0 +1,9 @@
root = true
[*]
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

@ -0,0 +1,6 @@
# NodeCore Heresy
In a move most disrespectful towards the creator of award-winning game
[NodeCore], the **Heresy** mod brings the blasphemous concept of nodes that
aren't full 1m³ cubes such as stairs and slabs to the minimalist and pure
experience. (Even though NodeCore has stuff like ladders and frames.)

@ -0,0 +1,37 @@
local minetest, nodecore
= minetest, nodecore
local MOD_NAME = minetest.get_current_modname()
local STAIR_NODE_BOX = {
type = "fixed", fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.0, 0.5 },
{ -0.5, 0.0, 0.0, 0.5, 0.5, 0.5 },
},
}
local function do_the_cursed_thing(name, def)
local base_mod_name = name:gsub(":.*", "")
local base_name = name:gsub(".*:", "")
local stair_name = MOD_NAME .. ":" .. base_mod_name .. "__" .. base_name .. "_stair"
local stair_def = nodecore.underride({
description = def.description .. " Stair",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = STAIR_NODE_BOX,
selection_box = STAIR_NODE_BOX,
sunlight_propagates = true,
groups = { stair = 1 },
}, def)
minetest.register_node(stair_name, stair_def)
end
local plank_name = "nc_woodwork:plank"
local plank_def = minetest.registered_nodes[plank_name]
do_the_cursed_thing(plank_name, plank_def)

@ -0,0 +1,5 @@
name = nc_heresy
title = NodeCore Heresy
author = copygirl
description = Adds non-full building blocks to NodeCore.
depends = nc_api_all, nc_woodwork
Loading…
Cancel
Save