@ -9,6 +9,23 @@ 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
@ -33,13 +50,38 @@ local function reg(name, basename, basedef)
node_box = {
type = " fixed " ,
fixed = {
{ - 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 } ,
{ - 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},
}
} ,
@ -48,7 +90,6 @@ local function reg(name, basename, basedef)
fixed = { - 7 / 16 , - 8 / 16 , - 7 / 16 , 7 / 16 , 2 / 16 , 7 / 16 }
} ,
tiles = {
basedef.tiles [ 1 ]
} ,
@ -61,6 +102,7 @@ local function reg(name, basename, basedef)
snappy = 1 ,
falling_node = 1 ,
falling_repose = 1 ,
optic_opaque = 1 ,
go_stone = 1
} ,
@ -81,9 +123,8 @@ local function reg(name, basename, basedef)
node_box = {
type = " fixed " ,
fixed = {
{ - 2 / 16 , - 8 / 16 , - 2 / 16 , 2 / 16 , - 7 / 16 , 2 / 16 } ,
{ - 2 / 16 , - 8 / 16 , - 2 / 16 , 2 / 16 , - 5 / 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 } ,
}
} ,
@ -92,6 +133,7 @@ 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 ]
@ -106,6 +148,7 @@ local function reg(name, basename, basedef)
falling_node = 1 ,
falling_repose = 1 ,
go_territory_marker = 1 ,
stack_as_node = 1 ,
} ,
go_team = name ,
@ -117,18 +160,8 @@ local function reg(name, basename, basedef)
on_dig = lc_liberties.handle_dig ,
} )
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 } } ,
} )
reg_stone_craft ( name , " crossy " )
reg_stone_craft ( name , " starcrossy " )
nodecore.register_craft ( {
label = " Smash go stones into territory markers " ,