跳到正文

KubeJS Custom Rarity

作者:maxkuka

Let you create new custom rarities using KubeJS

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

KubeJS addon that allows you to create custom rarities.

Create and customize your own rarity types with support for hex colors and text formatting.

Limits:

  • Forge / NeoForge: up to 200 custom rarities
  • Fabric / Quilt: unlimited custom rarities, available only for 1.20.1

You can apply custom colors using hex color codes and add formatting styles to each rarity.

Available formatting codes:

bold, italic, underlined, strikethrough, obfuscated

Examples:

StartupEvents.registry(‘item’, event => {
  event.createRarity(‘mint’, 0x98FF98)
  event.createRarity(‘fire’, 0xE25822, bold, italic)
  event.createRarity(‘teal’, 0x008080, bold, italic, underlined, strikethrough, obfuscated)

  event.create(‘mint_gem’)
    .displayName(‘Mint Gem’)
    .rarity(‘mint’)
 
 event.create(‘fire_gem’)
    .displayName(‘Fire Gem’)
    .rarity(‘fire’)
 
   event.create(‘teal_gem’)
    .displayName(‘Teal Gem’)
    .rarity(‘teal’)
})

常见问题

KubeJS Custom Rarity 支持哪些 Minecraft 版本?

KubeJS Custom Rarity 支持 Minecraft Java 版 1.20.1–1.21.1,共 4 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

KubeJS Custom Rarity 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

maxkuka 的其他作品

查看全部 →