|
|
|
@ -9,23 +9,6 @@ include("rules") |
|
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname() |
|
|
|
|
|
|
|
|
|
local function reg_stone_craft(name, pattern) |
|
|
|
|
local piecename = modname .. ":stone_" .. string_lower(name) |
|
|
|
|
|
|
|
|
|
nodecore.register_craft({ |
|
|
|
|
label = "Chop scored cement into go stones", |
|
|
|
|
action = "pummel", |
|
|
|
|
toolgroups = {choppy = 3}, |
|
|
|
|
nodes = { |
|
|
|
|
{ |
|
|
|
|
match = "nc_concrete:" .. name .. "_" .. pattern .. "_ply", |
|
|
|
|
replace = "air" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
items = {{name = piecename, count = 3, scatter = 4}}, |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
local function reg(name, basename, basedef) |
|
|
|
|
local piecename = modname .. ":stone_" .. string_lower(name) |
|
|
|
|
if minetest.registered_nodes[piecename] then return end |
|
|
|
@ -50,38 +33,13 @@ local function reg(name, basename, basedef) |
|
|
|
|
node_box = { |
|
|
|
|
type = "fixed", |
|
|
|
|
fixed = { |
|
|
|
|
{-2/16, -8/16, -2/16, 2/16, -0/16, 2/16}, |
|
|
|
|
{-4/16, -7/16, -5/16, 4/16, -1/16, 5/16}, |
|
|
|
|
{-5/16, -7/16, -4/16, 5/16, -1/16, 4/16}, |
|
|
|
|
{-5/16, -6/16, -6/16, 5/16, -2/16, 6/16}, |
|
|
|
|
{-6/16, -6/16, -5/16, 6/16, -2/16, 5/16}, |
|
|
|
|
{-3/16, -5/16, -7/16, 3/16, -3/16, 7/16}, |
|
|
|
|
{-7/16, -5/16, -3/16, 7/16, -3/16, 3/16}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- wolfie model high-detail-ified: |
|
|
|
|
--{-3/16, -8/16, -2/16, 3/16, -0/16, 2/16}, |
|
|
|
|
--{-2/16, -8/16, -3/16, 2/16, -0/16, 3/16}, |
|
|
|
|
--{-4/16, -7/16, -5/16, 4/16, -1/16, 5/16}, |
|
|
|
|
--{-5/16, -7/16, -4/16, 5/16, -1/16, 4/16}, |
|
|
|
|
--{-5/16, -5/16, -6/16, 5/16, -3/16, 6/16}, |
|
|
|
|
--{-6/16, -5/16, -5/16, 6/16, -3/16, 5/16}, |
|
|
|
|
--{-4/16, -6/16, -6/16, 4/16, -2/16, 6/16}, |
|
|
|
|
--{-6/16, -6/16, -4/16, 6/16, -2/16, 4/16}, |
|
|
|
|
--{-5/16, -6/16, -5/16, 5/16, -2/16, 5/16}, |
|
|
|
|
--{-3/16, -5/16, -7/16, 3/16, -3/16, 7/16}, |
|
|
|
|
--{-7/16, -5/16, -3/16, 7/16, -3/16, 3/16}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- lizzie's pre-wolfie model: |
|
|
|
|
--{-2/16, -8/16, -2/16, 2/16, -0/16, 2/16}, |
|
|
|
|
--{-4/16, -7/16, -5/16, 4/16, -1/16, 5/16}, |
|
|
|
|
--{-5/16, -7/16, -4/16, 5/16, -1/16, 4/16}, |
|
|
|
|
--{-5/16, -6/16, -6/16, 5/16, -2/16, 6/16}, |
|
|
|
|
--{-6/16, -6/16, -5/16, 6/16, -2/16, 5/16}, |
|
|
|
|
--{-5/16, -5/16, -7/16, 5/16, -3/16, 7/16}, |
|
|
|
|
--{-7/16, -5/16, -5/16, 7/16, -3/16, 5/16}, |
|
|
|
|
--{-6/16, -5/16, -6/16, 6/16, -3/16, 6/16}, |
|
|
|
|
{-3/16, -8/16, -3/16, 3/16, -7/16, 3/16}, |
|
|
|
|
{-5/16, -7/16, -5/16, 5/16, -6/16, 5/16}, |
|
|
|
|
{-6/16, -6/16, -6/16, 6/16, -4/16, 6/16}, |
|
|
|
|
{-7/16, -4/16, -7/16, 7/16, -2/16, 7/16}, |
|
|
|
|
{-6/16, -2/16, -6/16, 6/16, 0/16, 6/16}, |
|
|
|
|
{-5/16, 0/16, -5/16, 5/16, 1/16, 5/16}, |
|
|
|
|
{-3/16, 1/16, -3/16, 3/16, 2/16, 3/16}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -90,6 +48,7 @@ local function reg(name, basename, basedef) |
|
|
|
|
fixed = {-7/16, -8/16, -7/16, 7/16, 2/16, 7/16} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tiles = { |
|
|
|
|
basedef.tiles[1] |
|
|
|
|
}, |
|
|
|
@ -102,7 +61,6 @@ local function reg(name, basename, basedef) |
|
|
|
|
snappy = 1, |
|
|
|
|
falling_node = 1, |
|
|
|
|
falling_repose = 1, |
|
|
|
|
optic_opaque = 1, |
|
|
|
|
go_stone = 1 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -123,8 +81,9 @@ local function reg(name, basename, basedef) |
|
|
|
|
node_box = { |
|
|
|
|
type = "fixed", |
|
|
|
|
fixed = { |
|
|
|
|
{-2/16, -8/16, -2/16, 2/16, -5/16, 2/16}, |
|
|
|
|
{-2/16, -8/16, -2/16, 2/16, -7/16, 2/16}, |
|
|
|
|
{-3/16, -7/16, -3/16, 3/16, -6/16, 3/16}, |
|
|
|
|
{-2/16, -6/16, -2/16, 2/16, -5/16, 2/16}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -133,7 +92,6 @@ local function reg(name, basename, basedef) |
|
|
|
|
fixed = {-6/16, -8/16, -6/16, 6/16, 0/16, 6/16} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
node_placement_prediction = "", |
|
|
|
|
|
|
|
|
|
tiles = { |
|
|
|
|
basedef.tiles[1] |
|
|
|
@ -148,7 +106,6 @@ local function reg(name, basename, basedef) |
|
|
|
|
falling_node = 1, |
|
|
|
|
falling_repose = 1, |
|
|
|
|
go_territory_marker = 1, |
|
|
|
|
stack_as_node = 1, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
go_team = name, |
|
|
|
@ -160,8 +117,18 @@ local function reg(name, basename, basedef) |
|
|
|
|
on_dig = lc_liberties.handle_dig, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
reg_stone_craft(name, "crossy") |
|
|
|
|
reg_stone_craft(name, "starcrossy") |
|
|
|
|
nodecore.register_craft({ |
|
|
|
|
label = "Chop scored cement into go stones", |
|
|
|
|
action = "pummel", |
|
|
|
|
toolgroups = {choppy = 3}, |
|
|
|
|
nodes = { |
|
|
|
|
{ |
|
|
|
|
match = "nc_concrete:" .. name .. "_starcrossy_ply", |
|
|
|
|
replace = "air" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
items = {{name = piecename, count = 3, scatter = 4}}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
nodecore.register_craft({ |
|
|
|
|
label = "Smash go stones into territory markers", |
|
|
|
|