CalcStack 插件文档
你是否厌倦了在教程中盯着无尽的物品列表,却不确定自己究竟需要多少组、箱子或单个物品?这个插件正是为你而生的!
功能特性
CalcStack 允许玩家通过一个简单的命令,轻松计算手中物品的组数以及所需箱子的数量。它支持自定义堆叠大小,并能够显示制作物品所需的原材料及其对应的堆叠需求。
核心功能
- 自动翻译成中文
- 自动获取物品的堆叠数量
- 轻松解决大量物品到单位的转换问题
- 完善的估算系统
- 例如,1x 原木 -> 4x 木板,自动估算最大值如 2x 木板 -> 1x 原木、3x 木板 -> 1x 原木、6x 木板 -> 2x 原木
- 原材料的自动单位转换
- 高度可自定义的语言文件
命令用法
/calculate <数量> 或 /calculate <物品ID> <数量>
- <数量>: 要计算的物品数量。
- <物品ID>: 特定的物品 ID(默认为手持物品)。(支持自动补全 ID)
你也可以使用简写命令 /calc。
示例
玩家可以使用 /calculate 500 来计算手中 500 个物品的堆叠和箱子需求,或者使用 /calculate diamond 500 来计算存储 500 个指定钻石(如钻石)的堆叠和箱子需求。
配置文件
最大堆叠数量设置
此设置用于定义物品的最大堆叠数量。如果启用了自定义堆叠大小,您可以根据需要调整堆叠数量。
custom-stack-size:
enabled: false # 启用自定义堆叠数量
value: 64 # 最大堆叠数量
箱子容量(格子数)
设置每个箱子的格子数量。默认值为 27 格(标准箱子大小)。
chest-size: 27 # 每个箱子的容量(格子数)
语言文件
使用提示
显示正确的命令用法。
usage: "§e用法:/calculate <数量> 或 /calculate <物品ID> <数量>"
错误消息
提供用户友好的错误消息。
error:
not_player: "§c此命令只能由玩家使用!"
no_item_in_hand: "§c请手持一个有效的物品,或在命令中指定物品 ID!"
invalid_item: "§c无效的物品 ID:{item}"
invalid_number: "§c请输入有效的数量!"
计算结果显示
显示物品的堆叠情况、剩余物品数量、所需箱子数及其他详细信息。
result:
header: "§a===== 计算结果 ====="
item: "§b物品:{item}({translated_name})"
quantity: "§b数量:{quantity}"
stacks: "§b组数:{stacks} 组(每组 {stack_size} 个物品)"
remaining: "§b剩余:{remaining} 个物品"
chests: "§b所需箱子数:{chests}(每个箱子有 {chest_size} 个槽位)"
footer: "§a===================="
原材料显示
计算该物品所需的原材料及其堆叠需求。
ingredients:
header: "§a===== 原材料 ====="
item: "§b- {ingredient}({translated_name}) - {quantity} 个物品"
stacks: " §7- {stacks} 组(每组 {stack_size} 个物品)"
remaining: " §7- 剩余 {remaining} 个物品"
chests: " §7- 所需箱子:{chests}(每个箱子有 {chest_size} 个槽位)"
请随意自定义配置,尽情享受使用 CalcStack 的乐趣!
CalcStack Plugin Documentation
Are you tired of staring at endless lists of materials in tutorials, unsure of how many stacks, boxes, or items you actually need? This plugin was created just for you!
Features
CalcStack allows players to easily calculate the stack count of items in hand and the required number of boxes with a simple command. It supports custom stack sizes and can display the raw materials needed for crafting items along with their stacking requirements.
Key Features
- Automatic translation to Chinese
- Automatically retrieves the stack count of items
- Easily solves large quantity to unit conversion issues
- Perfect estimation system
- For example, 1x Log -> 4x Planks, automatically estimating maximum values like 2x Planks -> 1x Log, 3x Planks -> 1x Log, 6x Planks -> 2x Logs
- Automatic unit conversion for raw materials
- Highly customizable language files
Command Usage
/calculate <quantity> or /calculate <itemID> <quantity>
- <quantity>: The number of items to calculate.
- <itemID>: The specific item ID (defaults to the item in hand). (Includes automatic ID completion)
You can also use the shorthand command /calc.
Example
Players can use /calculate 500 to calculate the stack and box requirements for 500 items in hand, or use /calculate diamond 500 to calculate the stack and box requirements for storing 500 specified diamonds.
Configuration File
Max Stack Size Setting
This setting is used to define the maximum stack size of items. If custom stack sizes are enabled, you can adjust the stack size as needed.
custom-stack-size:
enabled: false # Enable custom stack size
value: 64 # Maximum stack size
Chest Size (Number of Slots)
Set the number of slots in each chest. The default is 27 slots (standard chest size).
chest-size: 27 # Size of each chest (number of slots)
Language File
Usage Prompt
Displays the correct command usage.
usage: "§eUsage: /calculate <quantity> or /calculate <itemID> <quantity>"
Error Messages
Provides user-friendly error messages.
error:
not_player: "§cThis command can only be used by players!"
no_item_in_hand: "§cPlease hold a valid item, or specify the item ID in the command!"
invalid_item: "§cInvalid item ID: {item}"
invalid_number: "§cPlease enter a valid quantity!"
Calculation Result Display
Shows the stacking situation of items, remaining item count, required number of boxes, and other details.
result:
header: "§a===== Calculation Result ====="
item: "§bItem: {item}({translated_name})"
quantity: "§bQuantity: {quantity}"
stacks: "§bStacks: {stacks} groups ({stack_size} items/group)"
remaining: "§bRemaining: {remaining} items"
chests: "§bChests needed: {chests} (each chest has {chest_size} slots)"
footer: "§a===================="
Raw Materials Display
Calculates the raw materials required for the item and their stacking needs.
ingredients:
header: "§a===== Raw Materials ====="
item: "§b- {ingredient}({translated_name}) - {quantity} items"
stacks: " §7- {stacks} groups ({stack_size} items/group)"
remaining: " §7- Remaining {remaining} items"
chests: " §7- Chests needed: {chests} (each chest has {chest_size} slots)"
Feel free to customize the configuration and enjoy using CalcStack!
评论 0
登录后参与评分
还没有评论,来抢沙发吧