2024-12-06 22:09:08|Myriagame |source:minecraft skins
Overview
Custom loading interface.
The module involved in this article:
Custom Loading Screen
Notice
I won't teach you how to write JSON here. You should read a professional tutorial.
The example will use # string to represent something.You should delete # String and find the corresponding content.The annotation and optional field are //.
start
The configuration file is under Config/Betterloadingscreen.
There are four files, which are:
config.cfg
Images.json
preset one.json
preset two.json
The latter two are all example configuration files, which is useless.
Config file content
Under the config.cfg file
start
#Configuration fileGeneral {
#If this is true, it will construant to drane.io to get a changelog [default: true]
B: ConnecteXternally = TRUE
S: font = textures/font/ascii.png
#Play a sound after mincraft has finned starting up [default: true]
B: PlaySound = TRUE
S: sound = random.Levelup
#Thether or not to use minecraft's display to show the problem. This looks ball, but there is a public, AVE Any Strange Crash Reports or Compatability issues, try setting this to false [default: true]
B: Useminecraft = TRUE
}
explain
4-6 behavior connects a website called Drone.io.And display in ASCII text.
8-10 Actions play the sound when the loading is completed. The registered name is Random.Levelup, that is, gain experience: upgrade.Can enter the interface to enter the replacement (DING).
It can also be replaced with registered sounds in the Sound.json file.In other words, it can be exchanged to the sound of resource package definition.
12, 13 Whether the behavior uses the original loading interface.The setting is to load Image.json to display the custom load interface.
If the settings are not set, a progress bar will be generated by Java.
IMAGE.JSON customized
If you want to work for this document, set up 12 and 13 in the aforementioned line.start
Default configuration
[{{
"ResourceLocation": "Textures/GUI/Title/Mojang.png",
"PositationType": "Center",
"Type": "Static",
"Texture": {
"X": 0,
"Y": 0,
"Width": 256,,,
"Height": 256
},
"Position": {
"X": 0,
"Y": 0,
"Width": 256,,,
"Height": 256
},
"Comment": "None"
},
{{
"ResourceLocation": "Textures/FONT/ASCII.png",
"PositationType": "Center",
"Type": "dynamic_text_status",
"Position": {
"X": 0,
"Y": -30,
"Width": 0,
"Height": 0
},
"Color": "000000",,
"Comment": ""},
{{
"ResourceLocation": "Textures/FONT/ASCII.png",
"PositationType": "Center",
"Type": "dynamic_text_percentage",
"Position": {
"X": 0,
"Y": -40,
"Width": 0,
"Height": 0
},
"Color": "000000",,
"Comment": "" "
},
{{
"ResourceLocation": "Betterloadingscreen: Textures/ProgressBars.png",
"PositationType": "Center",
"Type": "Static",
"Texture": {
"X": 0,
"Y": 10,
"Width": 182,
"Height": 5
},
"Position": {
"X": 0,
"Y": -50,
"Width": 182,
"Height": 5
}, "Comment": "None"
},
{{
"ResourceLocation": "Betterloadingscreen: Textures/ProgressBars.png",
"PositationType": "Center",
"Type": "dynamic_percentage",
"Texture": {
"X": 0,
"Y": 15,
"Width": 182,
"Height": 5
},
"Position": {
"X": 0,
"Y": -50,
"Width": 182,
"Height": 5
},
"Comment": "None"
},
{{
"Type": "Clear_Colour",
"Colour": "FFFFFF",
"Comment": "" "
}
]
A normal element (displayed in the loading interface) shall include the following content.
{{"ResourceLocation": "#ResourcePath",
"PositationType": "#Position",
"Type": "#Type",
// "texture": {// "x":#texture_x_num,
// "y":#texture_x_num,
// "width":#texture_width_num,
// "Height":#Texture_hright_num
//},,
// "color": "#color",
"Position": {
"X":#POSITION_X_NUM,
"Y":#POSITION_Y_NUM,
"Width":#posity_width_num,
"Height":#posity_height_num
}
}
explain
Image file location.
For the original file, just write the position of the image file.(Textures/xxx/xxx.png)
For module files, you need to add a module image file position before.(Modid: Textures/xxx/xxx.png)
Posity
This element location.
The segment of its location will be written below.* See [1]
Type
Rendering type.
The paragraphs required for its type will be written below.* See [2]
Textures_x_num
X and Y coordinates in the upper left corner of the image.
Textures_y_num
Position_x_num
Its position [positioning point (in the upper left corner) position].
X and Y coordinates of the positioning point.
In other words, offset coordinates of the positioning point.
Position_y_num
Texture_width_num
The length and width of the picture selection.
[Ie from (0, 0) to (Texture_width_num, Texture_hright_num)]]
Texture_hright_num
Position_width_num
The width and length rendered.
Position_height_num
Color color requires hexadecimal methods.
【1】 Location
First for the y coordinates, the X coordinate.
The field of defining Y coordinates is: top (top), center (center), and lower (bottom).
The field of the X coordinate is: left (left), center, right (Right).
If you live in the middle, please use only one center instead of the center_center.
【2】 Type
One of the bid 1 in use can only be used once.
The text dynamic display loading percentage. 1 (It can actually use multiple, but because you can only display it when it is loaded, it is useless.) Dynamic_percentage loads the customized progress bar. 1 (same as above) Clearcolor solid color filling background.See the next chapter, the miscellaneous items. 1 static_text Customized static text.
Miscellaneous item
Custom solid color filling background
An image.json should have a solid color filling.
The example is as follows:
{{"Type": "Clear_Colour",
"Colour": "FFFFFF"
}
That is, fill in Clear_color at Type and set the color to hexadecimal colors.
Custom text
Applicable to:
Dynamic_text_status, dynamic_text_percentag, static_text and other fields.
At this time, the "Texture" paragraph after the dual oblique line can be removed, but the "Column" tag should also be added at the same time.
ResourcePath can be set to the original ASCII, and there are corresponding examples in the default configuration.
A "text" is needed to display static texts in static_text.Support localization.
Comment function
Comment can be used here as a corresponding and tag annotation that can be modified in the game.
If you can write it well, this will be useful in your own look and modification in the game.
Custom
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22