2019-01-25 09:26:15 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local minetest, nodecore
|
2019-01-26 11:39:55 -05:00
|
|
|
= minetest, nodecore
|
2019-01-25 09:26:15 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
minetest.register_craftitem(modname .. ":chip", {
|
|
|
|
description = "Stone Chip",
|
2019-03-14 01:16:44 -04:00
|
|
|
inventory_image = modname .. "_stone.png",
|
2019-04-06 22:20:08 -04:00
|
|
|
wield_image = "[combine:16x16:0,2=" .. modname .. "_stone.png",
|
|
|
|
wield_scale = {x = 1.25, y = 1.25, z = 1.75},
|
2019-03-14 01:16:44 -04:00
|
|
|
sounds = nodecore.sounds("nc_terrain_stony")
|
2019-02-09 22:44:56 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
nodecore.register_craft({
|
|
|
|
label = "break cobble to chips",
|
|
|
|
action = "pummel",
|
|
|
|
nodes = {
|
2019-03-09 19:21:32 -05:00
|
|
|
{match = "nc_terrain:cobble_loose", replace = "nc_terrain:gravel"}
|
2019-02-09 22:44:56 -05:00
|
|
|
},
|
|
|
|
items = {
|
2019-03-09 19:21:32 -05:00
|
|
|
{name = modname .. ":chip", count = 4, scatter = 5}
|
2019-02-09 22:44:56 -05:00
|
|
|
},
|
|
|
|
toolgroups = {cracky = 2},
|
|
|
|
itemscatter = 5
|
|
|
|
})
|
|
|
|
|
2019-09-07 10:56:43 -04:00
|
|
|
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
|
|
|
|
})
|
|
|
|
|
2019-02-09 22:44:56 -05:00
|
|
|
nodecore.register_craft({
|
|
|
|
label = "repack chips to cobble",
|
|
|
|
action = "pummel",
|
|
|
|
nodes = {
|
2019-01-25 09:26:15 -05:00
|
|
|
{
|
2019-02-23 09:44:22 -05:00
|
|
|
match = {name = modname .. ":chip", count = 8},
|
2019-02-09 22:44:56 -05:00
|
|
|
replace = "nc_terrain:cobble_loose"
|
2019-01-25 09:26:15 -05:00
|
|
|
}
|
2019-02-09 22:44:56 -05:00
|
|
|
},
|
|
|
|
toolgroups = {thumpy = 2}
|
2019-01-25 09:26:15 -05:00
|
|
|
})
|