2018-11-03 18:56:07 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-01-26 11:39:55 -05:00
|
|
|
local minetest, nodecore
|
|
|
|
= minetest, nodecore
|
2018-11-03 18:56:07 -04:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
local plank = modname .. ":plank"
|
|
|
|
minetest.register_node(plank, {
|
|
|
|
description = "Wooden Plank",
|
|
|
|
tiles = { modname .. "_plank.png" },
|
|
|
|
groups = {
|
2019-01-24 22:08:05 -05:00
|
|
|
choppy = 1,
|
2019-01-17 00:01:00 -05:00
|
|
|
flammable = 2,
|
|
|
|
fire_fuel = 5
|
2019-03-13 23:51:59 -04:00
|
|
|
},
|
|
|
|
sounds = nodecore.sounds("nc_tree_woody")
|
2018-11-03 18:56:07 -04:00
|
|
|
})
|
|
|
|
|
2019-02-10 00:20:55 -05:00
|
|
|
nodecore.register_craft({
|
|
|
|
label = "split tree to planks",
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {choppy = 1},
|
|
|
|
normal = {y = 1},
|
|
|
|
nodes = {
|
|
|
|
{match = "nc_tree:tree", replace = "air"}
|
|
|
|
},
|
|
|
|
items = {
|
|
|
|
{name = plank, count = 4, scatter = 5}
|
|
|
|
}
|
|
|
|
})
|
2019-02-23 10:39:38 -05:00
|
|
|
|
|
|
|
nodecore.register_craft({
|
|
|
|
label = "bash planks to sticks",
|
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {thumpy = 3},
|
|
|
|
normal = {y = 1},
|
2019-08-27 19:14:51 -04:00
|
|
|
nodes = {
|
2019-02-23 10:39:38 -05:00
|
|
|
{match = plank, replace = "air"}
|
|
|
|
},
|
|
|
|
items = {
|
2019-03-16 16:54:35 -04:00
|
|
|
{name = "nc_tree:stick 2", count = 4, scatter = 5}
|
2019-02-23 10:39:38 -05:00
|
|
|
}
|
|
|
|
})
|