Document/cleanup legacy thatch support
Eventually these XXX-marked items should be removed once the official release has supported the newer features for long enough.
This commit is contained in:
parent
a7d4b709d5
commit
d9e94ca2c0
@ -23,6 +23,7 @@ All features from WintersKnight's original NodeCore Nature mod, plus...
|
|||||||
- Tall Grass -> Sedges
|
- Tall Grass -> Sedges
|
||||||
- Flowers (N.B. some colors were changed to maintain balance)
|
- Flowers (N.B. some colors were changed to maintain balance)
|
||||||
- Reeds -> Rushes (added dormant state)
|
- Reeds -> Rushes (added dormant state)
|
||||||
|
- Thatch
|
||||||
- Recipe to grind vanilla dry flora into plant fibers
|
- Recipe to grind vanilla dry flora into plant fibers
|
||||||
- Preserve mod flora consistent with vanilla mechanics
|
- Preserve mod flora consistent with vanilla mechanics
|
||||||
- Moss Complete Overhaul
|
- Moss Complete Overhaul
|
||||||
|
@ -71,6 +71,7 @@ nodecore.register_mossy = register_mossy
|
|||||||
|
|
||||||
register_mossy("cobble", "nc_terrain:cobble")
|
register_mossy("cobble", "nc_terrain:cobble")
|
||||||
register_mossy("stone", "nc_terrain:stone")
|
register_mossy("stone", "nc_terrain:stone")
|
||||||
|
-- XXX: LEGACY PRE-THATCH SUPPORT
|
||||||
register_mossy("thatch", minetest.registered_nodes["nc_flora:thatch"]
|
register_mossy("thatch", minetest.registered_nodes["nc_flora:thatch"]
|
||||||
and "nc_flora:thatch" or modname .. ":thatch")
|
and "nc_flora:thatch" or modname .. ":thatch")
|
||||||
register_mossy("trunk", "nc_tree:tree")
|
register_mossy("trunk", "nc_tree:tree")
|
||||||
|
@ -5,44 +5,49 @@ local include, minetest, nodecore
|
|||||||
|
|
||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
|
|
||||||
local floraswap = include("lib_floraswap")
|
-- ================================================================== --
|
||||||
if minetest.registered_nodes["nc_flora:thatch"] then
|
-- XXX: LEGACY PRE-THATCH SUPPORT
|
||||||
return floraswap(modname .. ":thatch", "nc_flora:thatch")
|
if not minetest.registered_nodes["nc_flora:thatch"] then
|
||||||
end
|
minetest.register_node(modname .. ":thatch", {
|
||||||
|
description = "Thatch",
|
||||||
|
tiles = {modname .. "_thatch.png"},
|
||||||
|
groups = {
|
||||||
|
choppy = 2,
|
||||||
|
flammable = 2,
|
||||||
|
fire_fuel = 5
|
||||||
|
},
|
||||||
|
sounds = nodecore.sounds("nc_terrain_swishy")
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node(modname .. ":thatch", {
|
nodecore.register_craft({
|
||||||
description = "Thatch",
|
label = "weave plant fibers into thatch",
|
||||||
tiles = {modname .. "_thatch.png"},
|
action = "pummel",
|
||||||
groups = {
|
toolgroups = {thumpy = 1},
|
||||||
choppy = 2,
|
duration = 3,
|
||||||
flammable = 2,
|
nodes = {
|
||||||
fire_fuel = 5
|
{
|
||||||
},
|
match = {name = modname .. ":plant_fibers", count = 8},
|
||||||
sounds = nodecore.sounds("nc_terrain_swishy")
|
replace = modname .. ":thatch"
|
||||||
})
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
nodecore.register_craft({
|
nodecore.register_craft({
|
||||||
label = "weave plant fibers into thatch",
|
label = "break thatch into fibers",
|
||||||
action = "pummel",
|
action = "pummel",
|
||||||
toolgroups = {thumpy = 1},
|
priority = -1,
|
||||||
duration = 3,
|
toolgroups = {choppy = 2},
|
||||||
nodes = {
|
nodes = {
|
||||||
{
|
{match = modname .. ":thatch", replace = "air"}
|
||||||
match = {name = modname .. ":plant_fibers", count = 8},
|
},
|
||||||
replace = modname .. ":thatch"
|
items = {
|
||||||
|
{name = modname .. ":plant_fibers 2", count = 4, scatter = 3}
|
||||||
}
|
}
|
||||||
},
|
})
|
||||||
})
|
|
||||||
|
|
||||||
nodecore.register_craft({
|
return
|
||||||
label = "break thatch into fibers",
|
end
|
||||||
action = "pummel",
|
-- ================================================================== --
|
||||||
priority = -1,
|
|
||||||
toolgroups = {choppy = 2},
|
local floraswap = include("lib_floraswap")
|
||||||
nodes = {
|
floraswap(modname .. ":thatch", "nc_flora:thatch")
|
||||||
{match = modname .. ":thatch", replace = "air"}
|
|
||||||
},
|
|
||||||
items = {
|
|
||||||
{name = modname .. ":plant_fibers 2", count = 4, scatter = 3}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user