Compatibility
Minecraft: Java Edition
1.21.1
Platforms
Supported environments
Links
Creators
Details
Licensed LGPL-3.0-only
Published last week
Updated last week
ķģ ėŖØė(Dependencies)
https://modrinth.com/mod/pyke-lib
주ģģ¬ķ
ė”컬ģė²ė„¼ 8080 ķ¬ķøė„¼ ģ“ģ©ķ“ģ ģ“źø° ė문ģ ė¤ė„ø ķė”ź·øėØģģ 8080 ķ¬ķøė„¼ ģ¬ģ© ģ¤ģ“ė©“ ė¬øģ ź° ė°ģķ ģ ģģµėė¤.
ėŖ ė ¹ģ“
/ķģģ°ė | ģ¹ģ§ģ§ ė”ź·øģø ģ°½ģ“ ėØė©° ģ½ź“ ėģ ģ ģ°ź²°ģ“ ė©ėė¤. (ė°©ģ” ķė©“ģ 주ģ ė
øģ¶ źøģ§)
/ģ°ėķ“ģ | ģ°ź²°ė ģ°ź²°ģ ķ“ģ ķ©ėė¤. /ķģģ°ė ģ
ė „ģ ģ¬ģ°ź²°ė©ėė¤.
- ź“리ģ ģ ģ© -
/ķģ <player> <amount>
kubejs ģ¬ģ© ė°©ė²
const CheeseBridgeAPI = Java.loadClass("kr.pyke.integration.ChzzkBridge");
const PykeLib = Java.loadClass("kr.pyke.PykeLib");
const COLOR = Java.loadClass("kr.pyke.util.constants.COLOR");
CheeseBridgeAPI.DONATION_HANDLER = (player, event) => {
let server = player.server;
server.executeIfPossible(() => {
const name = player.name.string; // ė°ė ģ¬ė (ķė ģ“ģ“)
const sender = event.donor(); // ė³“ėø ģ¬ė (ķģģ ėė¤ģ)
const amount = event.getAmount(); // ė°ģ ķģ źøģ” (int)
const message = event.donationMessage(); // ķģ ė©ģģ§ (String)
// [ė©ģģ§ ģ¤ģ ]
// COLOR ģģė RED, GOLD, YELLOW, LIME, AQUA, BLUE, PURPLE ė±ģ ģ¬ģ©ķ ģ ģģµėė¤.
// COLOR.LIME.getColor() ėģ 0xFFFFFF ź°ģ Hex ģ½ė넼 ģ§ģ ė£ģ“ė ė©ėė¤.
// PykeLib.sendSystemMessage(...); // ģ¼ė° ģ±ķ
ė©ģģ§
PykeLib.sendBroadcastMessage( // ģģė ź³µė°±ģ“ ķ¬ķØė ź°ģ”°ķ ģ 첓 ė©ģģ§
server.players,
COLOR.LIME.getColor(),
`§7${name}§fėģ“ Ā§e${amount.toLocaleString()}ģ¹ģ¦Ā§f넼 ķģ ė°ģ¼ģ
Øģµėė¤.`
);
// [ģ”°ź±“ė¶ ė³“ģ ģģ 1] 500,000ģ ķģ ģ
if (amount === 500000) {
let cmd = `tell ${name} 50ė§ģ ķģ ė°ģ lol`;
player.server.runCommand(cmd);
}
// [ģ”°ź±“ė¶ ė³“ģ ģģ 2] 1,000ģ ķģ ģ ė¤ģ“ģėŖ¬ė ģ§źø
if (amount === 1000) {
player.give('minecraft:diamond');
player.tell(`1ģ²ģ ė°ģģ ė¤ģ“ģėŖ¬ė ė°ģ`);
}
});
};
Config
{
"clientID": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}
ģ¹ģ§ģ§ API ģ ķ리ģ¼ģ“ģ ė±ė” ė°©ė²
https://developers.chzzk.naver.com/

Required Modes (Dependencies)
https://modrinth.com/mod/pyke-lib
Precautions
Since the local server uses port 8080, issues may arise if another program is already using port 8080.
Commands
/ķģģ°ė | Displays the CheeseBridge login window; connection is established upon agreeing to the terms. (Do not expose the address on the broadcast screen)
/ģ°ėķ“ģ | Disconnects the current connection. Re-entering /ķģģ°ė will reconnect.
- Administrator Only -
/ķģ <player> <amount>
How to Use kubejs
const CheeseBridgeAPI = Java.loadClass(ākr.pyke.integration.ChzzkBridgeā);
const PykeLib = Java.loadClass(ākr.pyke.PykeLibā);
const COLOR = Java.loadClass(ākr.pyke.util.constants.COLORā);
CheeseBridgeAPI.DONATION_HANDLER = (player, event) => {
let server = player.server;
server.executeIfPossible(() => {
const name = player.name.string; // Recipient (player)
const sender = event.donor(); // Sender (donor nickname)
const amount = event.getAmount(); // Donation amount received (int)
const message = event.donationMessage(); // Donation message (String)
// [Message Configuration]
// COLOR constants include RED, GOLD, YELLOW, LIME, AQUA, BLUE, PURPLE, etc.
// You can also directly input Hex codes like 0xFFFFFF instead of COLOR.LIME.getColor().
// PykeLib.sendSystemMessage(...); // General chat message
PykeLib.sendBroadcastMessage( // Full message with top/bottom spacing for emphasis
server.players,
COLOR.LIME.getColor(),
`§7${name}§f has received a donation of §e${amount.toLocaleString()}cheese§f.`
);
// [Conditional Reward Example 1] When donating 500,000 won
if (amount === 500000) {
let cmd = `tell ${name} 500,000 won donation received lol`;
player.server.runCommand(cmd);
}
// [Conditional Reward Example 2] When donating 1,000 KRW, give a diamond
if (amount === 1000) {
player.give(āminecraft:diamondā);
player.tell(`Received 1,000 KRW, so you get a diamond`);
}
});
};
Config
{
āclientIDā: āYOUR_CLIENT_IDā,
āclientSecretā: āYOUR_CLIENT_SECRETā
}



