The Dictionary is a non-craftable tool that can be used to comminicate with non-player characters.
Items:
| item | loot table |
|---|---|
Dictionary |
dictionary:dictionary |
Advancements:
| title | description |
|---|---|
I Get You! |
Use a Dictionary to talk to an NPC. |
Stage Director |
Use a Dictionary and Book to change an employee's chatter. |
Seasoned Diplomat |
Talk to every type of sentient NPC. |
The Dictionary can be used on any entity to talk to them; doing so, will print the entity name alongside an optional chatter line on the action bar.
Random chatter lines come from a pool in the all_chatter field of the
wishlist:args storage. The core Wishlist pack initialized it with a bunch of
default ones, and most other packs add one or two lines that give hints and
local flavor about the game.
The Dictionary can also be used to give a different chatter line to any NPC that considers the player their employer; to do so, use the dictionary on them while holding a Writable Book (unsigned) with the desired text written in the first page
The text provided to a hired NPC can be any valid JSON text. For simple sentences you can just write the plain line in the book.
Uses an advancement to detect if a player has used the dictionary item on a nameable mob.
Renaming a Dictionary item breaks it, because the game searches for the entity
that was just renamed {"translate":"item.wishlist,dictionary"} as its target.
The problem is moot if Dictionary is used via Hand, though.