Skip to content
Tyler Hancock edited this page Nov 11, 2020 · 1 revision

Bookshelf adds several commands that can help you develop and debug mods and modpacks.

Hand

The hand command allows you to quickly generate the held item in different ID formats. The usage of this command is /bookshelf hand TYPE_HERE

Tip: The command will produce a chat message that only you can see. Clicking this message will copy the text to your clipboard.

Output Formats

  • STRING - Outputs the held item as a string. This uses Java's toString method.
  • INGREDIENT - Outputs the held item as a JSON ingredient. If the item has NBT the NBT will be included in the output.
  • STACKJSON - Outputs the held item as a JSON string.
  • ID - Outputs the item ID of the held item.
  • HOLDER - Outputs the held item as the Forge ObjectHolder format.
  • TAGS - Outputs the item tags that are on the held item.
  • FLUIDS - Outputs the fluids that are contained within the held item.

Translate

The translate command will create a message in chat that only you can see. This message will be translated to the local language that your client is using. The usage of this command is /bookshelf translate translation_key_here. For example /bookshelf translate time.bookshelf.day.sunday will display the message Sunday.

Clone this wiki locally