Crossroads-Development / Crossroads

Crossroads is a mod for Minecraft. It adds a lot of content, and has the design philosophy of "simple pieces, complex contraptions".
MIT License
29 stars 18 forks source link

Add integration with Patchoulli jump-to-page feature #219

Closed MrDrProfNo closed 1 year ago

MrDrProfNo commented 1 year ago

Addresses #168

Adds references to many entries in the docs to allow opening pages by shift-clicking a block with the book, or holding Ctrl on an item with the book in your inventory.

The .txt files used in making the book entries have had a third line inserted. This line is either empty, or a series of references + page numbers in the format

ItemStack string[;page number][, ...]

If no page number is provided, it defaults to 0.

All existing .txts have been updated to match this format.

My general philosophy in choosing these references is:

  1. The block used as an entry's icon (and its variants) probably references that entry
  2. Anything too generic (vanilla items, metals/gems, etc.) doesn't reference any page.
  3. ... best effort attempt to make anything not under 2. fit to a page.

It seems likely that I've missed something, but it should be fine for the most part.

I'll note that I've included the (updated) built docs files in this commit, but as generated files they should probably be removed from source control.