|
|
@ -9,6 +9,23 @@ include("rules") |
|
|
|
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname() |
|
|
|
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 function reg(name, basename, basedef) |
|
|
|
local piecename = modname .. ":stone_" .. string_lower(name) |
|
|
|
local piecename = modname .. ":stone_" .. string_lower(name) |
|
|
|
if minetest.registered_nodes[piecename] then return end |
|
|
|
if minetest.registered_nodes[piecename] then return end |
|
|
@ -119,18 +136,8 @@ local function reg(name, basename, basedef) |
|
|
|
on_dig = lc_liberties.handle_dig, |
|
|
|
on_dig = lc_liberties.handle_dig, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
nodecore.register_craft({ |
|
|
|
reg_stone_craft(name, "crossy") |
|
|
|
label = "Chop scored cement into go stones", |
|
|
|
reg_stone_craft(name, "starcrossy") |
|
|
|
action = "pummel", |
|
|
|
|
|
|
|
toolgroups = {choppy = 3}, |
|
|
|
|
|
|
|
nodes = { |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
match = "nc_concrete:" .. name .. "_starcrossy_ply", |
|
|
|
|
|
|
|
replace = "air" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items = {{name = piecename, count = 3, scatter = 4}}, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodecore.register_craft({ |
|
|
|
nodecore.register_craft({ |
|
|
|
label = "Smash go stones into territory markers", |
|
|
|
label = "Smash go stones into territory markers", |
|
|
|