your current location:首页 > news>About how to use a integrated package update inspection tool (UPD8R) integrated package update check tool (upd8r) Minecr

About how to use a integrated package update inspection tool (UPD8R) integrated package update check tool (upd8r) Minecr

2024-12-10 17:48:09|Myriagame |source:minecraft skins

Foreword:

This MOD is actually the MOD written by my high version that facilitates the update of the integrated package. Considering that Version still does not consider internationalization enough, so I focused on strengthening this aspect.

The method of use is actually similar to Versioner.

If you know how Versioner is used, please refer to the template UPD8R/Template directly.

0. About API and FancyMenu linkage

After hard work, it has achieved linkage with Fancymenu (but the latest version has not been uploaded when writing this tutorial). The editing text of FancyMenu can easily obtain the variables of UPD8R, such as Curren Version, Latest Version, etc.

If you want to call the API of this MOD, you can easily obtain it easily by coming.

So you can also pass in Kubejs

 var info = java.loadClass ('com.tkisor.upd8R.API.INFOUTIL')

info.getisupd8r ()

Call this way.

1. Configure Config

This MOD's config comments are relatively detailed, but here it is given a Chinese explanation.

If the mod is updated, please refer to the MOD.

 {{

"Basecfg": {

"ENABLESIONCHECKING": true,

"Versiondataurl": [[

],,,

"Updateurl": {

"Zh_cn": "https://www.awa.com/"

},

"VersioncheckerConnecttimeout": 5000,

"Versioncheckerreadtimeout": 5000

},

"CurrentVersion": {

// Version number, compares the new version through this."Versioncode": 0,

"VersionFormat": "%VersionName%",

// version name.If there is no VersionCode on the cloud, you will try to compare VersionName.

"VersionName": "1.0.0"

}

}

2. JSON configuring the cloud

For the latest templates, please refer to UPD8R/Template.

You can upload the JSON file to github, gitee, etc., then click the file, click RAW (or original data), copy the links, and fill in it into config.

JSON's explanation is as follows:

 If you don't want to fill in which option, it is best to delete it directly instead of empty.

{{

// version name, here is "the latest version"

"VersionName": "1.0.0.0",

// Version number, here is "the latest version number"

"Versioncode": 25565,

// version format, show players

"VersionFormat": "%VersionName%or%VersionCode%",

// Update the link, the priority is higher than the local area

"Updateurl": {

"En_us": "https://github.com/tki-sor/upd8r"

},

// Update logs

"Changelogs": {

"1.0.0": [[

"AWA",

"Ovo"

], "2.0.0": [

"Qwq"

]

},

// Welcome, players will choose one randomly when joining the world.

"Welcomemessage": {{

"Tag": ["AWA1"],,

"Tag2": ["AWA2"],,

"Tag3": ["advancements.story.mine_stone.title"]]

}

}