[Page progress] Customized progress icon pagination progress

Pre -view

Please note: This tutorial assumes that you have the basis for the development of resource packages and packets!If there is no foundation, go to the corresponding page in Minecraft Wiki for learning!

Use the resource package to create a custom progress icon

Create a name in your resource package "ASSETS/Your Naming Space/" file called Advancements_frame_Types folder.You can create a JSON file in it to add a new progress icon.(At present, I do n’t know if the name of the JSON file has the name requirements except for the basic format requirements. The registered json file in this module is named BUILTIN.JSON) But please note: This file cannot change the progress of the original versionIcons, although the paging progress source module can change the original progress icon.(See the source code)


Json file format:

 {(root tags)

"Texture_sheet": The path of texture file containing a customized progress icon.The size of each schedule icon should be 26x26 pixels and there is a variant that has been obtained and not obtained, placed on the top of the unfinished progress icon.

"Frame": a list of a progress icon, each entry includes:

{One entry

"Name": The name of the progress icon needs to be matched with your data packet and module, which will constitute the registration name (ID content) of this progress icon.

"X": The starting X coordinate of the progress icon in the schedule icon.

"Y": The start y coordinate of the progress icon in the schedule icon.

"Item_offset_x" (optional): If you use the progress icon, move the items in the progress icon to the right (if it is negative, move to the left).

"Item_offset_y" (optional): If you use the progress icon, move the items in the progress icon downward (if it is negative, move upward).

"Formatting" (optional): text color for custom frame upgrades.Optional: BLACK (Black), DARK_BLUE (dark blue), DARK_GREEN (dark green), dark_equa (dark green), dark_red (dark red), dark_purple (purple), Gray (gray), dark_grey, dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), dark_grey (gray), DARK_GREY), DARK_GREY), DARK_GREY), DARK_GREY), DARK_GREY), Dark_grey)(Dark gray), Blue (blue), Green (green), EQUA (cyan), red (red), light_purple (pink), YELLOW (yellow), white (white)

}

}

Among them, the official example of the texture_sheet is given to the example in the source code.


Coupled with the built -in progress icon in the paging schedule, the icon statistics in the current game are:

(Picture from wiki)


Some examples:

This example is registered with paginatedAdvancements: Arrow and PagintedadVancements: Aquircle registered in the paging progress module itself.The following is a registered source code:

 {

"Texture_sheet": "Textures/GUI/Frames.png",,

"Frames": [[

{{

"Name": "Arrow",

"X": 0,

"Y": 0,

"Item_offset_x": -4,

"Item_offset_y": 0, 0,

"Formatting": "YELLOW",

},

{{

"Name": "Squircle",

"X": 26,

"Y": 0,

"Formatting": "Gray"

}

]

}

Use the packet to guide the progress icon of the custom definition

Create a name in your packet "Data/Your Naming Space/" file called Advance Ments_Frames folder.You can create a json file in it to add the progress icon for the existing progress (currently it is not known whether the name of the JSON file has the name requirements except the basic format requirements.Builtin.json (but why can't I use the frame in the Advancements folder directly).This progress icon is covered, and the icon specified in the Frame content in the original Advancements folder will be invalid and is forced to cover.However, the original "progress", "goal" and "challenge" display are still specified in the Frame in the Advancements folder.Json file format:

 [(root tag, a list)


{(A progress to display the customized progress icon)

"Advancements": The registration name of progress indicates the progress of the progress icon.

"Frame": The registration name of the progress icon indicates the progress icon to be covered.

}

]

Writing demonstration:

 [


{{

"Advancement": "Minecraft: Story/SHINY_GEAR",

"Frame": "Minecraft: Task"

},

{{

"Advancement": "Minecraft: Story/Cure_zombie_villager",, ",

"Frame": "PaginateDADVANCEMENTS: Arrow"

}

}