Skip to content

Type Alias: ItemTintSource ​

ts
type ItemTintSource = 
  | {
  type: "constant" | "minecraft:constant";
  value: ItemTintColor;
}
  | {
  downfall: number;
  temperature: number;
  type: "grass" | "minecraft:grass";
}
  | {
  default: ItemTintColor;
  type:   | "dye"
     | "minecraft:dye"
     | "potion"
     | "minecraft:potion"
     | "map_color"
     | "minecraft:map_color"
     | "firework"
     | "minecraft:firework"
     | "team"
     | "minecraft:team";
}
  | {
  default: ItemTintColor;
  index?: number;
  type: "custom_model_data" | "minecraft:custom_model_data";
};

Defined in: packages/minerender/src/model/Model.ts:47

A vanilla item color source. Missing component values and unsupported gameplay state use the declared default.