80 lines
1.9 KiB
Lua
80 lines
1.9 KiB
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local minetest, nodecore
|
|
= minetest, nodecore
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
minetest.register_craftitem(modname .. ":chip", {
|
|
description = "Stone Chip",
|
|
inventory_image = modname .. "_stone.png",
|
|
wield_image = "[combine:16x16:0,2=" .. modname .. "_stone.png",
|
|
wield_scale = {x = 1.25, y = 1.25, z = 1.75},
|
|
sounds = nodecore.sounds("nc_terrain_stony")
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
label = "break cobble to chips",
|
|
action = "pummel",
|
|
nodes = {
|
|
{match = "nc_terrain:cobble_loose", replace = "nc_terrain:gravel"}
|
|
},
|
|
items = {
|
|
{name = modname .. ":chip", count = 4, scatter = 5}
|
|
},
|
|
toolgroups = {cracky = 2},
|
|
itemscatter = 5
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
label = "break packed cobble to chips",
|
|
action = "pummel",
|
|
nodes = {
|
|
{match = "nc_terrain:cobble", replace = "nc_terrain:gravel"}
|
|
},
|
|
items = {
|
|
{name = modname .. ":chip", count = 4, scatter = 5}
|
|
},
|
|
toolgroups = {cracky = 4},
|
|
itemscatter = 5
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
label = "repack chips to cobble",
|
|
action = "pummel",
|
|
nodes = {
|
|
{
|
|
match = {name = modname .. ":chip", count = 8},
|
|
replace = "nc_terrain:cobble_loose"
|
|
}
|
|
},
|
|
toolgroups = {thumpy = 2}
|
|
})
|
|
|
|
|
|
|
|
nodecore.register_craft({
|
|
label = "break gravel to chips",
|
|
action = "pummel",
|
|
nodes = {
|
|
{match = "nc_terrain:gravel_loose", replace = "nc_terrain:sand"}
|
|
},
|
|
items = {
|
|
{name = modname .. ":chip", count = 4, scatter = 5}
|
|
},
|
|
toolgroups = {cracky = 2},
|
|
itemscatter = 5
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
label = "break packed gravel to chips",
|
|
action = "pummel",
|
|
nodes = {
|
|
{match = "nc_terrain:gravel", replace = "nc_terrain:sand"}
|
|
},
|
|
items = {
|
|
{name = modname .. ":chip", count = 2, scatter = 5}
|
|
},
|
|
toolgroups = {cracky = 2},
|
|
itemscatter = 5
|
|
}) |