2024-12-10 17:47:05|Myriagame |source:minecraft skins
Foreword:
This tutorial refers to the official wiki
But maybe it may not be synchronized MOD update (after all, still the official wiki)
1. Preparation
First of all, you need a JSON file (if you don't know it is best to search first), and it should contain a link to access the version control data on the browser (that is, the Internet) (such as stored version data on github, or on your own webIn the server).
And the link should be added to the Versioner.cfg field in your Config folder.
(For example, your json file is at github.com/123/123/blob/master/ver.json, then you should click the raw button to jump to the URL of the source file to copy this URL (the URL of the source file).
2. Write json
If it is Xiaobai and do not understand JSON, it is best to search the JSON format and editor to see that the format of JSON is easy to make mistakes!
Below is a third -party annotation Chinese version mentioned in Wiki (note that the annotation must be deleted after the writing is completed, which includes // text content)
{{"VersionName": "1.2.0", // This is the latest version of the name (that is, 1.12.2 or 1.7.10)
"VersionCode": 20, // version code is used for comparison versions.Big version code = updated version.If you do n’t fill in this, VersionName will be used for a comparison version, but it may be inaccurate (if you change this item, pay attention to the versionser.cfg in the config folder of the integrated package.
"VersionFormat": "%VersionName%", // You can use%variable_name%format to represent variables.JSON is not a variable or other fields of the list or object.
"sponsors": [{// sponsor objects consisting of sponsor objects (this item can be deleted, but when deleted, please pay attention to delete cleaning, not more brackets or less brackets)
"Category": "Gold",
"DisplayName": "sponsors.test", // You can use the translation key here, which will be the actual name displayed
"Titleformat": ["GOLD", "Bold"], // How to display the title title in the game.Check all the Minecraft format code that available options.
"sponsorformat": ["Gold"], "sponsors": [{{{{
"name": "tcreopargh",
"UUID": "2D06868C-6D9B-433A-A356-1A7993B62B8D" // You can use the name or UUID to represent the player.When both are defined, UUID is preferred.
},
{{
"name": "notch"
},
"Dinnerbone" // You can use string instead of objects here.If it does not match the UUID format, it will be the name.
]
},
{{
"Category": "Diamond",
"TitleFormat": ["Aqua", "Bold"],
"sponsorformat": ["aqua"],
"sponsors": [{{
"name": "Herobric"
}]
}
],,,
"SponsorMessage": ["", {// To this end uses the original JSON text format of Minecraft (such as sending/tellraw commands), which is displayed at the bottom of the sponsor list.(This item can be deleted)
"Text": "THANK All of you for sponsoring!",
"color": "Gold"
}, {
"Text": "
"
}, {
"Text": "Become a sponsor!",
"color": "red",
"bold": true,
"underlined": true,
"Clickevent": {
"Action": "Open_url",
"Value": "http://pataRON.TCREOPARGH.XYZ/"
}
}],,,
"Changelogs": {// Update Log "1.2.0": [//1.2.0 updated version of the content
"Fixed some more bugs", // specific content
"Removed Herobrine",
"FIXED The Vering Number Being Too Low"
],,,
"1.1.0": [//1.1.0 updated version content
"Fixed some bugs" // specific content
]
},
"variables": {// You can use variables to format the string or get them in Crafttweaker (this item should be able to be deleted)
"testint": 1000,
"teststring": "abcde",
"testarray": [[
1,
2,
3
],,,
"testdata": {
"A": [
"111",
"222",
"333"
]
}
},
"WelcomesSage": ["", {// welcome information, also the original JSON format
"Text": "Hello, Welcom to Play", // Welcome text "Color": "Gold" // Color
}, {
"text": "testpack!",,
"color": "aqua"
}, {
"Text": "
"
}, {
"Text": "Join Our Discord Server!", ",
"bold": true, whether it is bold
"underline": true, whether to add a line
"COLOR": "Blue", // Color
"Clickevent": {
"Action": "Open_url", // Open the action of the URL
"Value": "https://discord.gg/wbrb4vausz" // URL link
}
}]
}
3. Upload to the warehouse
If you don’t know if you upload it to the warehouse
(After all, you need to store your configuration file)
Configuration file analysis
general {#Add additional text before each row update (similar to the small tail, just put it in front)
S: Changelogprefix =-
#
S: delimiter ===================================
#If it is set to FALSE, the MOD will not try to get the version data.
#Integrated package users can close the version detection here
B: ENableVersionchecking = TRUE
#Your integration package name
S: ModpackName =#When the user clicks the update button, you must add http: // or https: //
#Note: This can be covered by '
S: Updateurl =
#The time to connect to the URL before the connection is turned off.
I: VersioncheckerConnectTimeout = 5000
#How much time should I read before the connection is turned off.
I: Versioncheckerreadtimeout = 5000
#Where to get the version data JSON, pay attention to add http:/ or https: //
S: Versiondataurl =
############################################## This############################################## This######
#版
#---------------------------------------------------------------------------------------------------#
#Update notification and message
############################################## This############################################## This######
VersionNotifications {
#If there is an available update, the chat message is displayed when you log in to the world for the first time?
B: ShowloginChatupDatenotification = TRUE
#If True, when the MOD cannot obtain all update data here, the error message will be displayed in the chat
B: ShowupDateCheckFailedMessage = TRUE
#If WelcomemesSage is defined in JSON, display messages in the chat world when logging in to the world
B: ShowwelComemessage = TRUE
}
############################################## This############################################## This#######
#---------------------------------------------------------------------------------------------------#
#Used to set the configuration of the current version information
#For integrated package developers: Make sure to change these when updating the integration package!
############################################## This############################################## This######
Currentversion {
#Format the variable used in the current version.Each line, the format is key = value
#The value must follow the JSON format. For example, the string must be caused by the dual quotation number
S: variables <
"
#The version code of the current version cannot be negative (such as: 1 or 11)
I: VersionCode = 0
#How to output the formatted version name (only for displaying the current version)
S: VersionFormat =%CurrentVersionName%
#The version of the current version
S: VersionName = 1.0.0
}
############################################## This############################################## This######
#Main menu
#---------------------------------------------------------------------------------------------------#
#The configuration of the main menu rendering
############################################## This############################################## This###### Mainmenu {
#When the user clicks the text, they will be transferred to the link.
#Leave it empty to make it the same as the updateurl, or leave them empty to transfer to them at all
S: Clicklink =
#Whether to enable the main menu added to this module.If set to false, all the following options will not work.
B: EnableMainmenu = TRUE
#The spacing between the main menu text and the screen frame.(Level) (When the text is located, ignore it)
I: Marginhorizontal = 2
#The spacing between the main menu text and the screen frame.(Vertical) (When the text is located, ignore it)
I: MarginVertical = 2
#Place the location of the main menu text.It must be one of the following: 'TOP_LEFT' (upper left), 'TOP_RIGHT' (upper right), 'bottom_left' (bottom left), 'bottom_right' (lower right), 'Top_center' (middle home), 'bottom_center', 'Center_Left'
S: MenutextPosition = top_left
#The default color of the main menu text, although you can always use color code to cover it.
#Must be converted to a decimal integer.(0xffffff-> 167777215)
I: TextColor = 16777215
#The text displayed on the main menu.You can use a variable such as%VersionName%in the string.
#Note: This can be covered by the obtained version data JSON!S: textlines <
§EVERSION §F: §9%CurrenTversionName%
%Isupdateavarable%
"
#The text displayed when the mouse is hovering on the text as a tool prompt.
#Note: This can be covered by the obtained version data JSON!
S: Tooltiptext <
§Ecurrent Vering §F: §6%CurrentVersionName%(%CurrentVersionCode%)
§2Latest Version §
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