
Item Calculator: A Blessing for Builders!
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!
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.
/calculate <quantity> or /calculate <itemID> <quantity>
You can also use the shorthand command /calc.
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.
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
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)
Displays the correct command usage.
usage: "§eUsage: /calculate <quantity> or /calculate <itemID> <quantity>"
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!"
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===================="
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!