Minecraft Data Packs / Game Mechanic

Book Loving Villagers

  • check_circle Functions
  • check_circle Loot Tables
  • 4,586 views, 2 today
  • 188 downloads, 0 today
  • 13
  • 8
  • 2
fafik77's Avatar fafik77
Level 64 : High Grandmaster Miner
53

Book Loving Villagers

Villagers love their books, so much so that they won't sell them to you, but don't worry they have prepared some rather interesting trades in exchange.
However they are kind enough to sell you mending paper (instead of mending book) just hold it in your hand and it will change back to being a book

Requires:
  1. fafik77 main.Lib(Google Drive) datapack (core), min: v2022-04-00
Instalation:
  • download this pack
  • download required files
  • put required files in place
Trades in exchange
## from mc 1.17.x (in overworld)
spore_blossom (if underground <-100; 54>)
small_dripleaf (if underground <-100; 54>)
hanging_roots (if underground <-100; 54>)
glow_ink_sac (if underground <-100; 54>)

## from mc 1.16.x (in the_nether)
blackstone (if in the_nether dimension)

## from mc 1.15.x
experience_bottle
gold_ingot
glowstone_dust
quartz
emerald
diamond
lapis_lazuli
crossbow enchanted(32 lvl, not treasure)
armor_stand (with show_arms hands)
dark_oak_sapling
kelp (if in ocean biomes)
tube_coral_block (if in warm_ocean)
brain_coral_block (if in warm_ocean)
bubble_coral_block (if in warm_ocean)
fire_coral_block (if in warm_ocean)
horn_coral_block (if in warm_ocean)
golden_carrot
name_tag
obsidian
bone


So how does this work?
i don't know. magic?

1. villager with a book trade has his trades reprocessed
2. when current trade is a book trade it gets replaced using a loot_table with a list of random trades
3. the trade from loot_table gets processed into a villager trade format
4. after everything is clear to go the reprocessed trades are saved back to villager

As any sufficiently advanced technology is indistinguishable from magic you are not mistaken calling it either Technology or Magic
CompatibilityMinecraft 1.15
toMinecraft 1.18
Tags

3 Update Logs

v2022-05-09 : by fafik77 05/09/2022 5:58:51 amMay 9th, 2022

fix: support 1.18 (caves & cliffs)
new: trades
LOAD MORE LOGS

Create an account or sign in to comment.

1
10/23/2020 3:23 pm
Level 50 : Grandmaster Procrastinator
VampanteOfficial
VampanteOfficial's Avatar
what is this datapack for? like what does it change
1
01/19/2021 8:40 am
Level 64 : High Grandmaster Miner
fafik77
fafik77's Avatar
"Villagers love their books, so much so that they won't sell them to you".
as simple as that, Villagers or to be more precise Librarians wont sell Enchanted Books to you, instead they offer you a variety of other items.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome