by Skulls » Sun Mar 24, 2019 3:24 am
Looks like callbacks for the player inventory (non-detached or node) are
minetest.register_allow_player_inventory_action(function(player, action, inventory, inventory_info)
minetest.register_on_player_inventory_action(function(player, action, inventory, inventory_info))
As it says in the lua_api.txt a "move" action will have the item in the "from_list" when it is being checked for allowability, but the "to_list" when it is being placed. This small detail could cause several minutes (or hours... in my case) of frustration because the ItemStack seems to be fine when checked but then nil when placed.