4 ‐ Basic Experience Generation - terrarium-earth/Cognition GitHub Wiki

Bibliophages

Bibliophages are tiny mechanical creatures that digest books, releasing the stored knowledge as XP in the process. Using a bibliophage on a bookshelf will turn it into an infected bookshelf. Infected bookshelves slowly release XP orbs as the bibliophages degrade them, eventually turning into Forgotten Dust.

bibliophage

Infected Bookshelves

Infected Bookshelves are bookshelves that are currently undergoing digestion by Bibliophages. They can be identified by their characteristic green pulsing. While infected, bookshelves undergo the following processes:

  1. XP production – works similarly to mob spawner mechanics. Bookshelves have a minimum and maximum spawn delay. Upon being placed, the bookshelf generates a random number between the two bounds and waits for that number of ticks, before producing an XP orb. The delay then resets and the process repeats

  2. Infection – Infected bookshelves can infect other bookshelves adjacent to (directly touching) them. Every second, a given infected bookshelf has a 2.0% chance to infect one adjacent bookshelf, if there are any present, converting it into another infected bookshelf.

  3. Decay – Each infected bookshelf has a set durability. Every time an infected bookshelf produces an XP orb, its decay value is incremented. When its decay value becomes equal to its durability, the bookshelf decays. Upon decaying, the bookshelf has a 50% chance to drop 1 Forgotten Dust.

Other Mechanics

  • Apart from vanilla bookshelves, bibliophages can also feed on archiver's bookshelves and enchanted bookshelves. Archiver's bookshelves have twice the durability of ordinary bookshelves. Enchanted bookshelves have twice the durability, and produce orbs that are twice the value.

  • While vanilla bookshelves give enchantment tables 1.0 power, Archiver's bookshelves give them 1.5 power, and Enchanted bookshelves give them 2 power.

  • Infected bookshelves cannot be harvested, even with silk touch. If broken, the bookshelf will drop a random amount of XP proportional to its remaining durability. However, this amount will be far less than its lifetime production would otherwise yield. It will also drop 1 forgotten dust (this is guaranteed).

  • Lastly, infected bookshelves can have their redstone sensitivity toggled by shift-right-clicking with a Staff of Attunement. Disabled bookshelves will not produce XP, infect adjacent bookshelves, or decay. The status of a bookshelf and its remaining lifetime can be queried by right-clicking with the Staff of Attunement.

bookshelves

Vanilla, Archiver's and Enchanted bookshelves (top), their infected counterparts (bottom), and Forgotten Dust

Summary of Properties

Block Orb Value Spawns Total XP generated Avg Spawn Delay Avg XP per second Avg Lifespan
Infected Bookshelf 12 50 600 (20Lv) 400 ticks (20s) 0.6 1000s (17min)
Infected Archiver's Bookshelf 12 100 1200 (28Lv) 400 ticks (20s) 0.6 2000s (33min)
Infected Enchanted Bookshelf 24 100 2400 (37Lv) 400 ticks (20s) 1.2 2000s (33min)

Agar Blocks

Agar blocks serve as a permanent source of Bibliophages, removing the need to craft them continuously if your bookshelf supply is inconsistent. Apart from that, when placed next to Infected Bookshelves, Agar blocks may also exert special effects on the bookshelves surrounding them.

2025-03-13_11 37 05

From left to right:

  • Fluorescent Agar — Serves as the starting point to craft all other types of Agar blocks. However, it does not have any function on its own. Fluorescent Agar transforms into Nutrient Agar upon being infected repeatedly at least 4 times, either via Bibliophage items or by placing it next to infectious blocks such as Infected bookshelves. The infection progress can be checked by right-clicking with a Staff of Attunement.
  • Nutrient Agar — Every second, has a 0.5% chance to infect one adjacent block.
  • Insightful Agar — Reduces the spawn delay of surrounding bookshelves. Every second, has a 1% chance to infect one adjacent block.
  • Extravagant Agar — Increases the orb value of surrounding bookshelves. Every second, has a 2% chance to infect one adjacent block.

Boosts are most powerful when surrounding bookshelves are adjacent to (directly touching) the Agar block. A weaker boost is also applied to bookshelves sharing an edge and sharing a vertex. As of v2.3.2, the boosts applied by Insightful and Extravagant Agar stack multiplicatively if you have multiple Agar blocks affecting the same bookshelf.

Summary of Properties

Block Type of Boost Boost to Adjacents Boost to Edges Boost to Vertices Infectivity
Nutrient Agar None None None None 0.005
Insightful Agar Decreased Spawn Delay x1.35 x1.20 x1.10 0.01
Extravagant Agar Increased Orb Value x1.35 x1.20 x1.10 0.02

image

Left to right: Example of four adjacent bookshelves, example of four bookshelves sharing an edge, example of four bookshelves sharing a vertex