on_put/allow_put/etc. for non-detached inventories
I know there are functions called “on_put”, “allow_put”, “on_move”, “on_take”, etc. available for detached definitions; they are defined when calling minetest.create_detached_inventory.
I wonder if such functions are available for non-detached inventories as well. Especially player inventories.
I want to achieve that some slots of a player's inventory behave differently by only allow them to hold a particular item type, but no other item type.
I know this can be achieved for detached inventories by defining the allow_put function.
I wonder if such functions are available for non-detached inventories as well. Especially player inventories.
I want to achieve that some slots of a player's inventory behave differently by only allow them to hold a particular item type, but no other item type.
I know this can be achieved for detached inventories by defining the allow_put function.