1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-24 18:35:20 +01:00

Remove/Tweak (nearly) all unknown recipes

This commit is contained in:
LeMagnesium
2015-08-10 17:12:27 +02:00
parent b8b1c606e2
commit 399ece08b6
9 changed files with 71 additions and 33 deletions

View File

@@ -59,18 +59,13 @@ minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
local horizontal_tree_convert_facedir = {7, 12, 9, 18}
minetest.register_abm({
nodenames = {"moreblocks:horizontal_tree","moreblocks:horizontal_jungle_tree"},
nodenames = {"moreblocks:horizontal_tree"},
interval = 1,
chance = 1,
action = function(pos, node)
if node.name == "moreblocks:horizontal_tree" then
node.name = "default:tree"
else
node.name = "default:jungletree"
end
node.param2 = node.param2 < 3 and node.param2 or 0
minetest.set_node(pos, {
name = node.name,
name = "default:tree",
param2 = horizontal_tree_convert_facedir[node.param2 + 1]
})
end,