2021-11-25 21:13:36 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2024-10-14 18:44:58 -04:00
|
|
|
local core, nc
|
|
|
|
= core, nc
|
2021-11-25 21:13:36 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2024-10-14 18:44:58 -04:00
|
|
|
local modname = core.get_current_modname()
|
2021-11-25 21:13:36 -05:00
|
|
|
|
2024-10-14 18:44:58 -04:00
|
|
|
core.register_node(modname .. ":thatch", {
|
2021-11-25 21:13:36 -05:00
|
|
|
description = "Thatch",
|
|
|
|
tiles = {modname .. "_thatch.png"},
|
|
|
|
groups = {
|
2021-12-09 21:58:49 -05:00
|
|
|
snappy = 1,
|
2021-12-13 23:34:37 -05:00
|
|
|
flammable = 1,
|
2021-12-16 20:47:13 -05:00
|
|
|
fire_fuel = 4,
|
|
|
|
peat_grindable_node = 1
|
2021-11-25 21:13:36 -05:00
|
|
|
},
|
2024-10-14 18:44:58 -04:00
|
|
|
sounds = nc.sounds("nc_terrain_grassy"),
|
2023-12-02 14:27:00 -05:00
|
|
|
mapcolor = {r = 132, g = 135, b = 87},
|
2021-11-25 21:13:36 -05:00
|
|
|
})
|
|
|
|
|
2024-10-14 18:44:58 -04:00
|
|
|
nc.register_craft({
|
2021-12-16 22:31:50 -05:00
|
|
|
label = "pack thatch",
|
2021-11-25 21:13:36 -05:00
|
|
|
action = "pummel",
|
|
|
|
toolgroups = {thumpy = 1},
|
|
|
|
nodes = {
|
|
|
|
{
|
|
|
|
match = {groups = {flora_sedges = true}, count = 8},
|
|
|
|
replace = modname .. ":thatch"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
2023-05-08 20:18:00 -04:00
|
|
|
|
2024-10-14 18:44:58 -04:00
|
|
|
nc.register_craft({
|
2023-05-08 20:18:00 -04:00
|
|
|
label = "unpack thatch",
|
|
|
|
action = "pummel",
|
|
|
|
wield = {groups = {rakey = true}},
|
|
|
|
duration = 2,
|
|
|
|
consumewield = 1,
|
|
|
|
nodes = {
|
|
|
|
{
|
|
|
|
match = modname .. ":thatch",
|
|
|
|
replace = "air"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
items = {
|
|
|
|
{name = "nc_flora:sedge_1 2", count = 4, scatter = 5}
|
|
|
|
}
|
|
|
|
})
|