Lorekeeper Book Market Service
Handles polishing, resale, and royalty payouts for submitted player books.
Functions
Link copied to clipboard
Calculates sale price in emeralds from a quality score (0-10).
Link copied to clipboard
fun deliverRemainingSubmittedBookVolumes(server: MinecraftServer, player: ServerPlayer, soldBook: ItemStack)
Delivers remaining submitted-book volumes when the first volume is purchased from merchant trade.
Link copied to clipboard
Handles royalty payout when a submitted book copy is purchased from the Lorekeeper.
Link copied to clipboard
Link copied to clipboard
fun resolveSubmittedBookQualityScore(storage: LoreStorage, submission: LoreStorage.SubmittedBook): Int
Resolves a submitted book quality score from persisted submission metadata and lore entries.
Link copied to clipboard
fun resolveSubmittedBookQualityScores(storage: LoreStorage, submissions: List<LoreStorage.SubmittedBook>): List<Int>
Resolves quality scores for many submitted books in one pass over lore entries.