Dictionary

The Dictionary is a non-craftable tool that can be used to comminicate with non-player characters.

Requirements

Contents

Items:

item loot table
dictionary Dictionary dictionary:dictionary

Advancements:

title description
dictionary I Get You! Use a Dictionary to talk to an NPC.
dictionary Stage Director Use a Dictionary and Book to change an employee's chatter.
dictionary Seasoned Diplomat Talk to every type of sentient NPC.

Usage

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.

Overhead

Uses an advancement to detect if a player has used the dictionary item on a nameable mob.

Known Issues

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.