createModelItem

public static ItemStack createModelItem(String modelId, Material material)

Creates a model placement item. If server is 1.21.4+ and a display model JSON exists for this model, sets the item_model component for custom 3D rendering.