forked from nalc/nalc-server
193d900a7b
- nalc modpack containing: - nalc_lib: functions accessible by other mods - nalc_hardtrees: Trees and other nodes becomes not hand breakable
47 lines
1.2 KiB
Lua
47 lines
1.2 KiB
Lua
--[[ Auteur : sys4
|
|
|
|
Ce mod permet de :
|
|
- Ne plus casser les arbres à la main
|
|
- Supprimer haches et pioches en bois.
|
|
- Fabriquer les outils en pierre avec du silex trouvé dans le gravier
|
|
|
|
Remarque : Les sticks sont obtenables grâce au mod youngtrees de plantlife_modpack
|
|
]]
|
|
|
|
-- Suppression des haches et pioches en bois
|
|
minetest.unregister_item("default:axe_wood")
|
|
minetest.unregister_item("default:pick_wood")
|
|
|
|
-- Suppression du groupe oddly_breakable_by_hand pour les nodes en bois du mod default
|
|
local wood_nodes = {}
|
|
wood_nodes["default"] = {
|
|
"tree", "pine_tree", "jungletree", "acacia_tree", "aspen_tree",
|
|
"bush_stem", "acacia_bush_stem",
|
|
"wood", "pine_wood", "junglewood", "acacia_wood", "aspen_wood",
|
|
}
|
|
|
|
for mod, nodes in pairs(wood_nodes) do
|
|
for _,name in ipairs(nodes) do
|
|
nalc.not_hand_breakable(mod..":"..name)
|
|
end
|
|
end
|
|
|
|
-- Recette de craft pour pioche et hache avec du silex
|
|
minetest.register_craft({
|
|
output = "default:axe_stone",
|
|
recipe = {
|
|
{"default:flint", "default:flint", ""},
|
|
{"default:flint", "default:stick", ""},
|
|
{"", "default:stick", ""},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "default:pick_stone",
|
|
recipe = {
|
|
{"default:flint", "default:flint", "default:flint"},
|
|
{"", "default:stick", ""},
|
|
{"", "default:stick", ""},
|
|
}
|
|
})
|