Links
Tags
Creators
Details
1.6.7
Compatibility
Changes
1. Discord 機器人指令
新增了兩個斜線指令,僅限有 ADMINISTRATOR 或 MANAGE_SERVER 權限的成員執行:
• /querydc <player> - 輸入 Minecraft 玩家名稱查詢 Discord 帳號。
• /querymc <user> - 輸入 Discord 使用者(可直接 @標記)或 ID 查詢 Minecraft 帳號。
2. HTTP API
在連接埠 25580(預設,可在 config.yml 自訂)啟動了非同步的內建 HTTP 伺服器,支援跨網域(CORS)調用。
• 自動生成 Key:第一次啟動時,若 api.key 為 GENERATE,會隨機產生 64 位的 hex 金鑰寫入設定檔。
• 日誌遮蔽:金鑰在控制台輸出時只會顯示前後 4 位(例如 ab12***ef56),防止日誌洩漏。
• 驗證方式:
• Header:Authorization: Bearer <key>
• Query 參數:?key=<key>
3. API 規格與 Python 範例
請求端點 GET http://localhost:25580/api/query:
• action=query_dc&target=MC玩家名稱或UUID
• action=query_mc&target=DiscordID
• action=all (取得所有綁定關係)
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:1CCpGcuF:UxC30nip"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:1CCpGcuF:UxC30nip"
}

