You could use these 2 hooks:
HOOK_PLAYER_TOSSING_ITEM
http://mc-server.xoft.cz/LuaAPI/OnPlayer...gItem.html
HOOK_PRE_CRAFTING
http://mc-server.xoft.cz/LuaAPI/OnPreCrafting.html
after that, player are only able to move items inside of thiere inventory.
HOOK_PLAYER_TOSSING_ITEM
http://mc-server.xoft.cz/LuaAPI/OnPlayer...gItem.html
HOOK_PRE_CRAFTING
http://mc-server.xoft.cz/LuaAPI/OnPreCrafting.html
after that, player are only able to move items inside of thiere inventory.