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
|
||||
- Flowers (N.B. some colors were changed to maintain balance)
|
||||
- Reeds -> Rushes (added dormant state)
|
||||
- Thatch
|
||||
- Recipe to grind vanilla dry flora into plant fibers
|
||||
- Preserve mod flora consistent with vanilla mechanics
|
||||
- Moss Complete Overhaul
|
||||
|
@ -71,6 +71,7 @@ nodecore.register_mossy = register_mossy
|
||||
|
||||
register_mossy("cobble", "nc_terrain:cobble")
|
||||
register_mossy("stone", "nc_terrain:stone")
|
||||
-- XXX: LEGACY PRE-THATCH SUPPORT
|
||||
register_mossy("thatch", minetest.registered_nodes["nc_flora:thatch"]
|
||||
and "nc_flora:thatch" or modname .. ":thatch")
|
||||
register_mossy("trunk", "nc_tree:tree")
|
||||
|
@ -5,44 +5,49 @@ local include, minetest, nodecore
|
||||
|
||||
local modname = minetest.get_current_modname()
|
||||
|
||||
local floraswap = include("lib_floraswap")
|
||||
if minetest.registered_nodes["nc_flora:thatch"] then
|
||||
return floraswap(modname .. ":thatch", "nc_flora:thatch")
|
||||
end
|
||||
-- ================================================================== --
|
||||
-- XXX: LEGACY PRE-THATCH SUPPORT
|
||||
if not minetest.registered_nodes["nc_flora:thatch"] then
|
||||
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", {
|
||||
description = "Thatch",
|
||||
tiles = {modname .. "_thatch.png"},
|
||||
groups = {
|
||||
choppy = 2,
|
||||
flammable = 2,
|
||||
fire_fuel = 5
|
||||
},
|
||||
sounds = nodecore.sounds("nc_terrain_swishy")
|
||||
})
|
||||
nodecore.register_craft({
|
||||
label = "weave plant fibers into thatch",
|
||||
action = "pummel",
|
||||
toolgroups = {thumpy = 1},
|
||||
duration = 3,
|
||||
nodes = {
|
||||
{
|
||||
match = {name = modname .. ":plant_fibers", count = 8},
|
||||
replace = modname .. ":thatch"
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
nodecore.register_craft({
|
||||
label = "weave plant fibers into thatch",
|
||||
action = "pummel",
|
||||
toolgroups = {thumpy = 1},
|
||||
duration = 3,
|
||||
nodes = {
|
||||
{
|
||||
match = {name = modname .. ":plant_fibers", count = 8},
|
||||
replace = modname .. ":thatch"
|
||||
nodecore.register_craft({
|
||||
label = "break thatch into fibers",
|
||||
action = "pummel",
|
||||
priority = -1,
|
||||
toolgroups = {choppy = 2},
|
||||
nodes = {
|
||||
{match = modname .. ":thatch", replace = "air"}
|
||||
},
|
||||
items = {
|
||||
{name = modname .. ":plant_fibers 2", count = 4, scatter = 3}
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
nodecore.register_craft({
|
||||
label = "break thatch into fibers",
|
||||
action = "pummel",
|
||||
priority = -1,
|
||||
toolgroups = {choppy = 2},
|
||||
nodes = {
|
||||
{match = modname .. ":thatch", replace = "air"}
|
||||
},
|
||||
items = {
|
||||
{name = modname .. ":plant_fibers 2", count = 4, scatter = 3}
|
||||
}
|
||||
})
|
||||
return
|
||||
end
|
||||
-- ================================================================== --
|
||||
|
||||
local floraswap = include("lib_floraswap")
|
||||
floraswap(modname .. ":thatch", "nc_flora:thatch")
|
||||
|
Loading…
x
Reference in New Issue
Block a user