1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

[minetestforfun_game] Update

- Add new tree
- Creative mod improved
- New schematic files
This commit is contained in:
LeMagnesium
2016-01-15 19:39:01 +01:00
parent b4de154668
commit 874f854688
31 changed files with 631 additions and 193 deletions

View File

@ -36,6 +36,10 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
local node = minetest.get_node(pos)
local ndef = minetest.registered_nodes[node.name]
-- verify node is facedir (expected to be rotatable)
if ndef.paramtype2 ~= "facedir" then
return
end
-- Compute param2
local rotationPart = node.param2 % 32 -- get first 4 bits
local preservePart = node.param2 - rotationPart