Pack Gate 图标

Pack Gate

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/packgate
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: management

资源介绍
logo

Pack Gate

A simple modpack update alerter mod for Forge.

Introduction

Pack Gate was born out of the need for a simple modpack version checker that didn't have all kinds of fancy bells and whistles.

A simple mod that just does one thing: Checks for modpack updates.

This is NOT a server mod, it is client-sided only! It WILL crash servers.

How does it work?

Pack Gate works by calling out to a remotely-hosted file the modpack author created and compares the version in that file with the version specified in Pack Gate's config file.

If Pack Gate finds that the remote version is higher than what's been provided in the config, it'll block access to the game and
present the user with this screen:

Configuring Pack Gate

In order to use Pack Gate for your own modpack, you will need to make changes to the mod's config file.
Pack Gate's config is located at config/packgate-client.toml.

What you'll see when you first open the config.

#PackGate client config. Leave fields empty to use built-in fallbacks.
[general]
    modpackName = ""
    modpackVersion = ""
    remoteURL = ""
    downloadURL = ""
    #Use 'auto' to detect; or force 'json' or 'text'.
    format = "auto"

Definitions

Variable Input Required Information
modpackName String The friendly name of your modpack. Example: Create+
modpackVersion String The current version of your modpack.
remoteURL String The web address for your version file.
downloadURL String The web address where users can download the latest version of your modpack.
format String Tells Pack Gate how to interpret your remote version file.
auto is the default, it lets the mod interpret your remote file as plain text (txt) or as a JSON file.
text forces Pack Gate to only interpret your remote file as a plain text file.
json forces Pack Gate to only interpret your remote file as a JSON file.

About the remote version file

In order to utilize Pack Gate with your modpack, you will need to have the ability to host a text file or JSON file online.

Example plain text file:

1.0.0

Example JSON file:

{
  "latest": "1.0.1",
  "downloadURL": "https://github.com/RavenholmZombie/RZCraft-Modpack/releases/latest"
}

It is important that wherever you host your remote version file has the ability to provide you with a direct URL.
This means that file sharing platforms like MediaFire or MEGA won't work.

A working URL would end with the file and its extension, for example:
https://example.com/my_awesome_modpack_version.txt

Platforms like Google Drive and Dropbox can work, but you have to modify the URLs they provide in order to
get access to the direct, raw file.

If you can't host a file remotely on your own, consider sites like PasteBin or even GitHub.
As long as the URL points to the raw text or JSON, Pack Gate will accept it.

A working PasteBin URL like https://pastebin.com/raw/sNBDt7u5 would work.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Expanded adventures lite

价格:0 墨喵币
下载量:0

查看详情
Amethyst weapons and tools

价格:0 墨喵币
下载量:0

查看详情
Survival enhancement-生存增強

价格:0 墨喵币
下载量:0

查看详情
Create more fluid tanks and pipes

价格:0 墨喵币
下载量:0

查看详情