Custom Disks JS | Create Custom Refined Storage Disks with KubeJS
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_diskcustomdisksjs: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 millionB(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 capacityname— display namerarity— common, uncommon, rare, epic, or a custom labeltooltip— one line or multiple tooltip linescolor— changes the stock disk indicator colortexture— custom texture overridemodel— custom model overridecreativeTab— show or hide the disk in the creative tabprogressionTier— 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 的其他作品
查看全部 →Jade / Farmers Delight | Compatibility
为 Farmer’s Delight 的方块、作物、沃土、烹饪锅、砧板、炉灶和煎锅添加简洁清晰的 Jade 提示信息。
Sophisticated Backpacks: Ars Compat | Sophisticated Backpacks Ars-Nouveau Compatibility
为 Sophisticated Backpacks 添加 Ars Nouveau 的源质、源质链接、药水和修复升级。
Sophisticated Storage: Ars Compat | Sophisticated Storage Ars-Nouveau Compatibility
适配新生魔艺的精妙存储兼容升级。
TaCZ Kill Feed (tacz)
轻量级客户端 TaCZ 击杀信息栏,显示攻击者、被击杀者、武器、爆头情况和击杀距离。
评论
登录后评论和评分