commit
6051230af4
4 changed files with 57 additions and 0 deletions
@ -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) |
Loading…
Reference in new issue