Minecraft Data Packs / Quality of Life

What Book is This? [22w46a+]

  • check_circle Functions
  • check_circle Predicates
  • 2,140 views, 10 today
  • 128 downloads, 1 today
  • 39
  • 38
  • 9
Oligo avatar Oligo
Level 23 : Expert Crafter
11

What Book is This?

a Minecraft Datapack for versions 22w46a and higher


Description:

Relevant information about a book will be displayed to players when hovered over in a chiseled bookshelf. This alleviates the need to take a book out of a bookshelf to identify what it is, and attempts to make chiseled bookshelves a more viable and convenient option for storing books.

Usage:

What Book is This? [22w46a+] Minecraft Data Pack

Hovering your cursor over a book placed in a bookshelf will display identifying information about the book to the player's actionbar. The information displayed depends on the type of book in the slot. Enchanted books display each enchantment held in the book. Written books display the title and author of the book. These book types (as well as Writable books and Books) will display their custom names if present.

Displays can be toggled by each player individually using either of the commands
/trigger whatbookisthis
/trigger wbit

The datapack can be fully disabled by using the command /function wbit:uninstall

Credit:

Datapack assets written by Oligo
CompatibilityMinecraft 1.19
Tags

Create an account or sign in to comment.

1
12/09/2022 9:30 pm
Level 2 : Apprentice Miner
Juleea
Juleea avatar
Cool and useful idea.
1
11/26/2022 10:32 pm
Level 56 : Grandmaster Terraformer
Apollo404
Apollo404 avatar
Ah yes, versions 14w26a and higher
1
11/26/2022 4:35 pm
Level 38 : Artisan Kitten
MiauMattiMC
MiauMattiMC avatar
I haven‘t tried yet, but im sure it is great if it works. Great work!!
2
11/26/2022 2:18 am
Level 26 : Expert Explorer
Picarrow
Picarrow avatar
This is incredible, great job! I took a peep at the code, and boi is it complex, yikes! Smart dude.
2
11/26/2022 7:52 pm
Level 16 : Journeyman Miner
ProGameBot
ProGameBot avatar
My guess is a ray cast that figures out what part of the block he's looking at and then references it back to the slot in the NBT data. Great idea!
3
11/26/2022 9:18 pm
Level 23 : Expert Crafter
Oligo
Oligo avatar
That's correct! The implementation was more challenging than I expected but I got it to work in the end
1
11/25/2022 1:35 pm
Level 59 : Grandmaster Architect
Hoponopono
Hoponopono avatar
cool
1
11/25/2022 1:13 pm
Level 34 : Artisan Engineer
OnlyHouska
OnlyHouska avatar
bro this is cool
3
11/25/2022 1:03 pm
Level 15 : Journeyman Explorer
MutantPizzaDude
MutantPizzaDude avatar
WE NEED THIS IN VANILLA!
Planet Minecraft

Website

© 2010 - 2023
www.planetminecraft.com

Welcome