applyScriptedItemData

public static boolean applyScriptedItemData(ItemStack itemStack, String itemId)

Applies FMM authored item data to an existing ItemStack.

This sets:

  • The fmm_item_id PDC tag for FMM authored-item identity
  • The item model (1.21.4+) from FMM's display model registry
Does NOT modify name, lore, enchantments, or any other item properties.

Return

true if the data was applied successfully, false if the item ID is invalid or the ItemStack has no meta

Parameters

itemStack

the ItemStack to modify (must not be null)

itemId

the FMM item ID (config filename without .yml)