Minecraft wiki entry for Item_modifier, associated text: Item modifiers can only be invoked from commands or functions, specifically, with the /item command. When doing so, it is required to specify a target slot to invoke the modifier upon, either an item inside a container block's contents, or inside an entity's inventory.