跳到正文

Custom Disks JS | Create Custom Refined Storage Disks with KubeJS

作者:NullSc4pe

Create custom Refined Storage item and fluid storage disks using KubeJS! Customize capacities, recipes, names, colors, rarity, and tooltips through simple startup scripts. Fully integrates with Refined Storage networks.

收藏

介绍

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

《
Refined
Storage
|
Custom
Disks
JS
》

Refined Storage | Custom Disks JS is a KubeJS addon that lets you create your own Refined Storage item and fluid disks through startup scripts.

Custom disks use Refined Storage’s normal storage system, so they work with regular drives, grids, networks, and storage handling.

《
Create
Custom
Disks
》

Put your disk definitions inside:

kubejs/startup_scripts

Then register them with RSDisks.

RSDisks.item('mega_disk', {
  capacity: M(16),
  name: '16M Storage Disk',
  rarity: 'epic',
  color: 0x000000,
  tooltip: ['Endgame storage'],
  creativeTab: true,
  progressionTier: 'endgame'
})

RSDisks.fluid('mega_fluid_disk', {
  capacity: B(1),
  name: '1B Fluid Storage Disk',
  color: 0x000000
})

These examples create:

  • customdisksjs:mega_disk
  • customdisksjs:mega_fluid_disk

By default, custom disks use Refined Storage’s normal disk sprite.

The optional color value changes the small indicator pixel on the disk.

《
Capacity
Helpers
》

Storage sizes can be written with simple helpers:

K(1) // 1,000
M(1) // 1,000,000
B(1) // 1,000,000,000

So:

  • M(16) = 16 million
  • B(1) = 1 billion

Capacities use decimal values.

《
Recipes
》

Recipes use normal KubeJS recipe scripts inside:

kubejs/server_scripts

Example:

ServerEvents.recipes(event => {
  event.shaped('customdisksjs:mega_disk', [
    '   ',
    ' D ',
    '   '
  ], {
    D: 'minecraft:dirt'
  })
})

Just use the registered disk ID as the recipe output and normal KubeJS syntax for everything else.

《
Modify
Existing
Disks
》

Existing or custom disks can be changed with:

RSDisks.modify('customdisksjs:mega_disk', {
  capacity: M(32),
  name: '32M Storage Disk',
  rarity: 'rare',
  tooltip: ['Updated storage tier']
})

This can also be used on supported Refined Storage disks.

《
Remove
Disks
》

Remove a disk with:

RSDisks.remove('customdisksjs:mega_disk')

Removing an existing Refined Storage disk hides it from creative tabs while keeping existing item stacks valid.

Recipes can be removed separately through normal KubeJS recipe scripts.

《
Available
Options
》

  • capacity — storage capacity
  • name — display name
  • rarity — common, uncommon, rare, epic, or a custom label
  • tooltip — one line or multiple tooltip lines
  • color — changes the stock disk indicator color
  • texture — custom texture override
  • model — custom model override
  • creativeTab — show or hide the disk in the creative tab
  • progressionTier — adds a custom tier label to the tooltip

progressionTier is only a label and does not automatically lock crafting or usage.

《
Storage
Limits
》

On Refined Storage 1.x, capacities above the signed 32-bit limit are rejected.

B(1) fits within that limit.

Larger capacities require newer Refined Storage versions.

Your disks.
Your capacities.
Your progression.
All through KubeJS.

常见问题

Custom Disks JS | Create Custom Refined Storage Disks with KubeJS 支持哪些 Minecraft 版本?

Custom Disks JS | Create Custom Refined Storage Disks with KubeJS 支持 Minecraft Java 版 1.16.5–26.1.2,共 7 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Custom Disks JS | Create Custom Refined Storage Disks with KubeJS 怎么安装?

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

评论

登录后评论和评分

NullSc4pe 的其他作品

查看全部 →