Skip to content

Version 5.4.0

Compare
Choose a tag to compare
@Siroshun09 Siroshun09 released this 18 Jun 12:31
· 651 commits to main since this release
3890b8f

New Features

Add Support for Minecraft 1.20

Minecraft 1.20 has been released, and Box is now compatible Paper 1.20!

Note: Folia support is temporally dropped in this version. After Folia 1.20 released, we will added back support.

Improvements

Add item's categories for /box iteminfo

Category names are clickable. When clicked, it opens the category menu directly (Minecraft: Java Edition only).

image

Add arguments for /box gui

  • /box gui - Opens the Box menu
  • /box gui <player name> -> /box gui --player <player name> - Opens the Box menu with the specified player's stockholder
  • /box gui --category <category id> - Opens the specified category menu

Note: /box gui <player name> can still be used, but will be removed in the future.

Improve the default order of woods

image

Changes

Remove Categorizer

Categorizer is a system for automatically categorizing new items into the appropriate category. This system was implemented based on the name of the item and the item-tags. However, considering the planned changes to the Spigot/Paper API, we deemed difficult to maintain this system.

Instead, the default categories.yml is used to automatically categorize them into the category defined by default. While the Box is being maintained, new items are categorized in the same way as in the previous system. Items not defined in default categories.yml are categorized into the uncategorized category.

Note that if you do not manage categories yourself, it is recommended to delete plugins/Box/categories.yml and regenerate it after update (the order of items is not taken into account, both in the previous categoriser and after this change, which is ugly).

Fixes

  • Increase stock of ingredient's "crafting remaining item"

New API

PlayerCollectItemInfoEvent

This event called when the player collects item information after typing /box iteminfo.

Category#containsItem

Checks if the BoxItem is contained in the category.

API Changes

  • Add MCDataVersion#MC_1_20 and MCDataVersion#MC_1_20_1
  • Remove deprecated constructors of stock
  • Allow null for the permission node of TabCompleter#players
  • Add Javadoc for models of the craft feature