Minecraft Data Packs / Game Mechanic

Paint's Choosier Bartering (v2.2 for 1.20)

  • check_circle Functions
  • 3,098 views, 2 today
  • 89 downloads, 0 today
  • 23
  • 18
  • 8
PaintTheFuture's Avatar PaintTheFuture
Level 47 : Master Engineer
41
Paint's Choosier Bartering is a datapack where piglins, instead of bartering every item from the bartering loot table, will only barter 1-4 items from that table. This means that you'll have to carefully examine which piglin barters the items that you want, and keep special ones alive! The odds that a piglin will barter what you what depends on that item's rarity within the vanilla bartering loot table. The rarest item is an enchanted book with Soul Speed on it, so the piglin that barters that item will be the rarest find!

Item Rarity
Items that can be bartered with their respective odds:


Enchanted Book with Soul Speed, 5/459 chance

Iron Boots with Soul Speed, 8/459 chance

Splash Potion of Fire Resistance, 8/459 chance

Potion of Fire Resistance, 8/459 chance

Water Bottle, 10/459 chance

Iron Nugget, 10/459 chance

Ender Pearl, 10/459 chance

String, 20/459 chance

Quartz, 20/459 chance

Obsidian, 40/459 chance

Crying Obsidian, 40/459 chance

Fire Charge, 40/459 chance

Leather, 40/459 chance

Soul Sand, 40/459 chance

Nether Brick, 40/459 chance

Spectral Arrow, 40/459 chance

Gravel, 40/459 chance

Blackstone, 40/459 chance



This does NOT mean that only 5 out of every 459 piglins will barter enchanted books, remember piglins can barter up to four items!






Gamerules

In v2, there are four gamerules which are all on by default. Toggle gamerules with /function paint:pcb/gamerules/change. A chat prompt will let you toggle everything.


* Gamerule: Show offers. If you hold a gold ingot, Piglins will stop and show you what they offer.
* Gamerule: Show known offers. Can make it so they only show what they've already bartered, unless you've bartered at least 4 times, in which case they'll show all they barter.
* Doesn't occur if a piglin has items in their inventory, due to the piglin's inventory being bugged and would cause item duplication.
* Doesn't occur if the piglin has nothing to barter due to running out of items to barter.

* Gamerule: Limited stock. Piglins can now run out of items to barter!
* Barter limits:
* Common items like Blackstone & Soul Sand: 14-18 barters.
* Uncommon items like String & Quartz: 6-10 barters.
* Rare items like Ender Pearl & Iron Nugget: 2-6 barters.
* Very rare items like Potions & Iron Boots: 1-5 barters.
* Enchanted Book: 1-4 barters.
* Piglins who have nothing left to barter will give you your gold back (but will also try to pick it back up).
* They will also show the barrier particle.

* Gamerule: Self-Armor. Piglins who get bartered with a lot will equip themselves with gold armor, if they aren't already wearing it.
* The number of gold it takes to get armor is the same amount as it takes a player to craft it. eg. 4 = boots.
* Piglins will always go for boots, helmet, leggings and chestplate in that order. They will never save their gold for something more expensive because they are impatient.
* They might run out of stock before getting all the armor pieces, but it's unlikely.
* If they are bartered with an additional 6 times on top of being fully armored, they'll apply a gold snout trim to themselves.

How can I tell who barters what if I'm in Creative Mode?


If you want to cheat and find out what a piglin barters without
actually bartering with them, stand near them and use the command

/tag @e[type=piglin,limit=1,sort=nearest] list

Their tags will tell you want they offer. All piglins also have addtional tags like pcb_crossbow for what weapon they're carrying.

Will everything break if I enable/disable the pack?



None! This pack uses entity tags and scoreboard scores, but if the pack isn't enabled then those don't mean anything.
CompatibilityMinecraft 1.20
Tags

2 Update Logs

v2.2 : by PaintTheFuture 06/13/2023 1:00:01 amJun 13th, 2023

Changes since v2.1:

* pack_format is now 15, this pack expecs to be ran in 1.20 versions.
* Fixed a bug with marker entities.
* If a piglin has full armor and is bartered with an additional 6 times, they will apply a gold snout trim to themselves.

LOAD MORE LOGS

Create an account or sign in to comment.

1
06/14/2023 9:21 am
Level 17 : Journeyman Miner
Vocaloid_Warrior
Vocaloid_Warrior's Avatar
It´s back!
Have you planned update your other datapacks?
2
06/14/2023 10:52 am
Level 47 : Master Engineer
PaintTheFuture
PaintTheFuture's Avatar
Yes! Except maybe paint's completionist advancements, it's very high effort.
2
09/11/2021 2:54 pm
Level 22 : Expert Button Pusher
gingerwitch64
gingerwitch64's Avatar
A very, VERY good alternative to OP loot datapacks, where instead of introducing unfairness, you introduce strategy. Well done.
2
09/11/2021 12:32 am
Level 82 : Elite Programmer
Bittu5134
Bittu5134's Avatar
Very nice
4
04/20/2021 11:20 am
Level 46 : Master Artist
Elithris
Elithris's Avatar
Really nice idea! You should definitely expand on this idea, I can see it getting really big.
3
04/20/2021 1:13 pm
Level 47 : Master Engineer
PaintTheFuture
PaintTheFuture's Avatar
I just updated it with everything that I wanted so I'm tap-out for more ideas right now. Maybe after having played it for another year, I'll come up with more ideas!
2
04/19/2021 10:24 pm
Level 2 : Apprentice Miner
DamnFall23
DamnFall23's Avatar
It's possible to make this for 1.16.5?
2
04/19/2021 10:40 pm
Level 47 : Master Engineer
PaintTheFuture
PaintTheFuture's Avatar
Version 1 of this datapack is for 1.16.5 and is available on Curseforge here. It doesn't have the togglable features like limited stock, showing items, or piglins equipping themselves with armor. It's just piglins bartering 1-4 random items of the total bartering table. A very simple version that I just threw together in a few hours last year.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome