Modder & Modpack Creators
If you are creating mods and want to interact with Energized Power, this page is for you!
Everything including recipes, the energized power book, and other values (energy transfer rates, capacity, consumption and production rates/multipliers, recipe duration, or recipe duration multiplier) can be configured.
Configurations [v2.0.0 and newer]
- All configuration files are located in the
energizedpowerdirectory inside theconfigdirectory of the game instance.
Custom recipes and Data
Due to the changes in Vanilla, recipe and other datapack files have a different set of fields in different MC versions:
- See Recipes and Data (v1) for MC versions 1.20.4 and older
- See Recipes and Data (v2) for MC versions 1.20.5 to 1.21.1
- See Recipes and Data (v3) for MC versions 1.21.2 and newer
Energized Power Book
Add book page
Path: assets/<name>/book_pages/chapters/<####_chapter_id>/<####_sub_chapter_id>/.../<####_page_id>.json
####: Number for sorting chapters and pages (Last digit should be 0 to allow for insertion of up to 9 chapters/pages between 2 chapters/pages)
Example
Examples
Resources addingchapter thepage
{
villager"changePageIntToId": {
"1": "energizedpower:chapters/0000_welcome/0020_table_of_contents"
},
"content": {
"extra": [
{
"translate": "book.energizedpower.page.chapter.resources.1"
},
{
"bold": true,
"color": "black",
"extra": [
{
"click_event": {
"action": "change_page",
"page": 1
},
"color": "dark_green",
"hover_event": {
"action": "show_text",
"value": {
"translate": "book.energizedpower.tooltip.page"
}
},
"translate": "book.energizedpower.page.table_of_contents.title",
"underlined": true
}
],
"font": "minecraft:uniform",
"text": "\n\n"
}
],
"text": ""
},
"image": "energizedpower:textures/item/energized_copper_ingot.png",
"title": {
"color": "gold",
"translate": "book.energizedpower.page.chapter.resources.title"
}
}
content: A single Text Component (See: https://minecraft.wiki/w/Text_component_format)
changePageIntToId: A mapping from integer to book page image: A list of or a single image (Path to image namespace and path with png file ending) [Optional] [Should not be used in combination with block]
title: A large heading for chapter pages (If this element is present, the page will be centered vertically) [Optional]
Plates page
{
"changePageIntToId": {
"1": "energizedpower:chapters/0000_welcome/0020_table_of_contents"
},
"content": {
"extra": [
{
"translate": "book.energizedpower.page.chapter.resources.1"
},
{
"bold": true,
"color": "black",
"extra": [
{
"click_event": {
"action": "change_page",
"page": 1
},
"color": "dark_green",
"hover_event": {
"action": "show_text",
"value": {
"translate": "book.energizedpower.tooltip.page"
}
},
"translate": "book.energizedpower.page.table_of_contents.title",
"underlined": true
}
],
"font": "minecraft:uniform",
"text": "\n\n"
}
],
"text": ""
},
"image": "energizedpower:textures/item/energized_copper_ingot.png",
"title": {
"color": "gold",
"translate": "book.energizedpower.page.chapter.resources.title"
}
}
content: A single Text Component (See: https://minecraft.wiki/w/Text_component_format)
image: A list of or a single image (Path to image namespace and path with png file ending) [Optional] [Should not be used in combination with block]
Press Mold Maker page
{
"block": "energizedpower:press_mold_maker",
"content": {
"extra": [
{
"bold": true,
"color": "black",
"font": "minecraft:uniform",
"translate": "book.energizedpower.page.press_mold_maker"
}
],
"text": ""
}
}
content: A single Text Component (See: https://minecraft.wiki/w/Text_component_format)
block: A list of or a single block id to be displayed (The default block state will be used) [Optional] [Should not be used in combination with image]
Electrician page (Without mentioning theElectrician electrician building:Building)
File name: assets/<name>/book_pages/chapters/0120_structures/0010_electrician/0010_electrician_no_building.json
{
"content": {
"extra": [
{
"bold": true,
"color": "gold",
"extra": [
"\n\n"
],
"translate": "book.energizedpower.page.electrician.title"
},
{
"bold": true,
"color": "black",
"font": "minecraft:uniform",
"translate": "book.energizedpower.page.electrician.3"
}
],
"text": ""
}
}
Explanation:
content: A single Text Component (See: https://minecraft.wiki/w/Text_component_format)
Remove book pages
Path: assets/<name>/book_pages/remove/<folder1>/<folder2>/.../<page_id>.json
<paeg_id>: File name can be anything, does not have to match the page id to be removed
Example for removing the Electrician villager book page:
{
"remove": "energizedpower:chapters/0120_structures/0010_electrician"
}
Explanation:
remove: The ID of the book page to be removed