Mod Usage - TheDeathlyCow/thermoo GitHub Wiki
[!WARNING] This page has been moved to https://thermoo.thedeathlycow.com/setup/
Thermoo can be installed on servers without also requiring clients to install Thermoo, however the temperature and wetness data pieces will still (attempt) to synchronize with clients in case you want to, for example, display these on the HUD in your mod.
Setup
Add the repository to your build.gradle
repositories {
maven { url "https://jitpack.io/" }
// Needed as Thermoo uses Cardinal Components
maven {
name = "Ladysnake Mods"
url = 'https://maven.ladysnake.org/releases'
}
}
Add the dependency to your build.gradle
dependencies {
modImplementation "com.github.thedeathlycow:thermoo:VERSION"
}
Replace 'VERSION' with the version you want to use. For example, v1.4
. See the available versions on Jitpack
Usage
The following guides provide explanations and examples for using temperature in your own mod:
- Temperature Basics
- Temperature Attributes
- Temperature Changes
- Soaking
- Environment Controller and Events
- Temperature Effects
Extra APIs
These are extra APIs, primarily meant to promote integration with other mods:
- Temperature Unit API
- Seasons Integration API
- Status Bar Overlay API
- Armor Materials API (Deprecated, 1.21.1 only)
FAQ
How does Powder Snow freezing work with Thermoo?
It doesn't. How to reconcile the (rather limited) vanilla temperature system added through Powder Snow is left to you to figure out for your own mod's needs.
One solution is to simply disable Powder Snow freezing and convert all temperature changes to a Thermoo temperature change. Frostiful provides example code mixins for how to do this: https://github.com/TheDeathlyCow/frostiful/tree/0.5.3/src/main/java/com/github/thedeathlycow/frostiful/mixins/powder_snow_effects