Scorchful:Data Component Types

Scorchful adds several component types that can be used to configure item behaviours. See the vanilla data component format page for a general overview of components.

List of Components

scorchful:drink_level

Available 1.21.1+

Sets how much water this item should restore to players when consumed. This does not apply if a thirst mod like Dehydration is installed.

  •  components: Parent tag.
    •  scorchful:heat_resistance: One of parching, refreshing, sustaining, or hydrating. The final water replenishing values are set by config.

scorchful:num_drinks

Available 1.21.1-1.21.3. Replaced with scorchful:drink_container in 1.21.4.

Sets the number of drinks in a Water Skin.

  •  components: Parent tag.
    •  scorchful:num_drinks: Integer in the range [0, 16]. Used by the Water Skin item to determine how many drinks it has left.

scorchful:drink_container

Available 1.21.4+

Sets the current and max number of drinks in a drinkable item, such as a Water Skin. This component cannot exist on a stackable item stack.

  •  components: Parent tag.
    •  scorchful:drink_container: A compound component.
      •  num_drinks: Integer in the range [0, max_drinks]. Determines the number of drinks left in this item container.
      •  max_drinks: Optional positive integer. The maximum number of drinks this container may have. Defaults to 16.

Alternative format:

  •  components: Parent tag.
    •  scorchful:drink_container: Integer in the range [0, 16]. Determines the number of drinks left in this item container.

Example: /give @s scorchful:water_skin[scorchful:drink_container=16]

  • Gives a full water skin

scorchful:heat_resistance

Available 1.21.1+

This component adds Heat Resistance and Environment Heat Resistance attribute modifiers to items. This does not modify the underlying `minecraft:attribute_modifiers` component, it only applies modifiers when the item is equipped or displayed in a tooltip.

The attributes are documented on the Thermoo Wiki.

  •  components
    •  scorchful:heat_resistance: A compound component.
      •  heat_resistance: The heat resistance value to add to the entity when this item is worn.
      •  environment_heat_resistance: The environment heat resistance value to add to the entity when this item is worn.

The final attribute modifiers are applied as an add_value modifier for the thermoo:heat_resistance[1] and thermoo:environment_heat_resistance[1] attributes with modifier IDs of scorchful:base_heat_resistance/<slot_id> and scorchful:base_environment_heat_resistance/<slot_id>, respectively.

These base values are not currently configurable. If you wish to have more fine-grained control over the item attribute modifier values, you will need to use another mod like Default Components to set the default value to 0 in this component, and then add a regular attribute modifier to the underlying minecraft:attribute_modifiers component using a mod like CIA or Default Components.

scorchful:sun_hat_renderer

Available 1.21.4+

When present, replaces the normal item rendering with that of the sun hat when the item is worn on an entity's head. This includes a 3D sun hat model, a tooltip, and adjusting the opacity of the camera_overlay texture (if an equippable component is present).

  •  components: Parent tag.
    •  scorchful:has_sun_hat_model: Compound component.
      •  replace_armor_model: Optional. Whether the regular armor model should be replaced with the Sun Hat. If false, a Sun Hat will be rendered in addition to the regular armor model when worn. Defaults to true.
      •  show_tooltip: Optional. Whether to show the tooltip Reduces heat from the Sun when worn. Defaults to true.

Notes

  1. 1.0 1.1 In 1.21.1 and below, these attribute IDs are thermoo:generic.heat_resistance and thermoo:generic.environment_heat_resistance.