[Repost] prevent tools from being picked up if the player has a certain amount of tools in the backpack

just as the title says

prevent tools from being picked up if the player has a certain amount of tools in the backpack