Minecraft Data Packs / Game Mechanic

Book Loving Villagers

  • check_circle Functions
  • check_circle Loot Tables
  • 3,827 views, 3 today
  • 151 downloads, 1 today
  • 13
  • 8
  • 2
fafik77 avatar fafik77
Level 62 : High Grandmaster Miner
42

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

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 36 : Artisan Procrastinator
VampanteOfficial
VampanteOfficial avatar
what is this datapack for? like what does it change
1
01/19/2021 8:40 am
Level 62 : High Grandmaster Miner
fafik77
fafik77 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 - 2022
www.planetminecraft.com

Welcome