Item Configs

The format of all data-driven JSON configs for items

Insulation Items

/item/insulator/

Insulation items are the most advanced config settings in Cold Sweat. This system allows for insulation items to add attribute modifiers to the entity, and can have a condition that the wearing entity must match for the insulation to be active.

Format

First, insulation items have a few unique data structures of their own:

Slot Type

There are 3 insulation slot types that determine how the insulation item is used:

  • item : A normal insulation item that is applied to armor

  • armor : An armor item that provides insulation directly when worn

  • curio : Exclusive to items that can be worn as curios via the Curios mod

The slot type is simply represented by a string, i.e. "slot": "armor"

Insulation Type

There are also the 2 insulation types:

  • static : Provides a static amount of heat and cold insulation when worn

  • adaptive : Adapts to the player's environment to provide a varying amount of hot and cold insulation, like chameleon molt.

The formats for each type look like so:

For static insulation items:

For adaptive insulation items:

adapt_speed sets the amount that the item adapts every tick. Adaptation ranges between -1 (fully cold) and 1 (fully hot).

Attribute Modifiers

Attribute modifiers are added to insulation items like so:

Operation Types:

  • 1.20- add, multiply_base, multiply_total

  • 1.21+ add_value, add_multiplied_base, add_multiplied_total

For more info on how attribute modifiers work, see the Minecraft wiki.

Final Example

Given all of this information, we can take a look at an example insulation item:

The above example does the following:

  • Checks if both Thirst Was Taken and Create are loaded

  • Gives 6 heat insulation and 4 cold insulation when worn in armor slots

  • Applies to the iron chestplate, or any helmet, that is enchanted with protection 1 or 2

  • Only works if the entity is standing on an iron block and holding a stick

  • Increases the player's walking speed by 0.3 blocks per tick when worn

  • Reduces block temperature effects by 50% and season temperature effects by 100%

Fuel Items

/item/fuel/

Fuel items apply to the icebox, boiler, hearth, and soulspring lamp. They do not currently have extra functionality over what is achievable through normal configs.

Format

The format for fuel items is as follows:

Food Items

/item/food/

Food items change the entity's body temperature when eaten. They support item requirements and entity requirements (for the entity eating the item).

Format

Item Temperature

/item/item_temp/

Items can be configured to affect the player's temperature when being carried in their inventory. This system can check any inventory slots, including armor slots and curios.

Format

Drying Items

/item/drying_item/

"Drying items" are items that can be used to dry the player off when right-clicked.

Format

Last updated