Skip to content

Customization

Markus Bordihn edited this page Mar 1, 2024 · 3 revisions

Customization

There are different ways to adjust the behavior and design of the mod to your needs, use-case and preferences.

Configuration File 📄

Please see Configuration for more details about the configuration.

General UI Design 🎨

All the UI elements are using specific textures, which could be adjusted or replaced with your own textures. In general there are different types of textures which are used by the mod.

To replace the textures you have to create a new resource pack and replace the textures in the assets/daily_rewards/textures folder with your own textures files.

Item Textures 🎨

The item textures are used for specific rewards items like empty reward, lock day, skip day, taken reward etc. They are located in the assets/daily_rewards/textures/item folder and using a 16x16 texture.

UI Elements Textures 🎨

The UI elements textures are used for the different UI elements like the star or the rewards slots for the overview reward screen. They are located under assets/daily_rewards/textures/container/icons.png and using a 512x512 texture.

Screen Textures 🎨

The screen textures are used for the different screens like the overview reward screen or the compact reward screen. You could use them to add additional messages or logos to the different kind of screens. They are located under assets/daily_rewards/textures/container and using a 256x256 texture.

Texts 📝

All the texts are using specific language files, which could be adjusted or replaced with your own texts.

To replace the texts you have to create a new resource pack and replace the texts in the assets/daily_rewards/lang folder with your own texts files.

Language Files 📝

The language files are used for the different languages and could be adjusted or replaced with your own texts. They are located under assets/daily_rewards/lang and using a .json file. For example the English language file is located under assets/daily_rewards/lang/en_us.json.

Change text colors 🎨

You could also change the text colors by using the style codes in the language files.

Style Name Style Code
Black (black) §0
Dark Blue (dark_blue) §1
Dark Green (dark_green) §2
Dark Aqua (dark_aqua) §3
Dark Red (dark_red) §4
Dark Purple (dark_purple) §5
Gold (gold) §6
Gray (gray) §7
Dark Gray (dark_gray) §8
Blue (blue) §9
Green (green) §a
Aqua (aqua) §b
Red (red) §c
Light Purple (light_purple) §d
Yellow (yellow) §e
White (white) §f
Obfuscated §k
Bold §l
Strikethrough §m
Underline §n
Italic §o
Reset §r

Note: The reward timer is automatically using the style code, if it is the first character of the text.

Example:

{
  "text.daily_rewards.next_reward.in": "§c Next reward in %1$s"
}

This will change the color of the text and the reward timer to red.