Skip to content
This repository has been archived by the owner on Oct 14, 2018. It is now read-only.

Optifine Installer #1

Open
xiaoyang-sde opened this issue Jul 27, 2017 · 1 comment
Open

Optifine Installer #1

xiaoyang-sde opened this issue Jul 27, 2017 · 1 comment

Comments

@xiaoyang-sde
Copy link

Optifine自动安装

下载

BMCLAPI Doc

GET http://bmclapi2.bangbang93.com/optifine/versionList //获取全部版本列表 
GET http://bmclapi2.bangbang93.com/optifine/:mcversion //获取指定版本列表
//Demo
[
    {
        "mcversion": "1.12",  
        "type": "HD_U_C3",    
        "patch": "pre",
        "_id": "5948a92e27faf41b454526aa",
        "__v": 0
    }
]
//下载Optifine
GET http://bmclapi2.bangbang93.com/optifine/:mcversion/:type/:patch
GET http://bmclapi2.bangbang93.com/optifine/1.12/HD_U_C3/pre
//错误提示
{
    "msg": "no such optifine"
}

安装
将Optifine复制到.minecraft\libraries\optifine\OptiFine<Version>
(例如.minecraft\libraries\optifine\OptiFine\1.8.8_HD_U_E2)

修改版本Json

在minecraftArguments加入--tweakClass optifine.OptiFineTweaker
在libraries加入
[
    {
      "name": "optifine:OptiFine:1.8.8_HD_U_E2"
    },
    {
      "name": "net.minecraft:launchwrapper:1.7"
    }
  ]

@gundamMC
Copy link
Owner

For Optifine's "official" list:
<td class="downloadLineFileFirst">OptiFine 1.12 HD U C4</td>
And download link:
<td class="downloadLineMirror"><a href="http://optifine.net/adloadx?f=OptiFine_1.12_HD_U_C4.jar">&nbsp; (mirror)</a></td>
Basically, downloads https://optifine.net/downloads this page as a string and searches these two tags. This, however, may be slower (depend on where you live) and more resource demanding than the BMCLAPI method.

Note: This issue is used for storing Optifine "docs," please don't reply unless you have something to add.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants