Paint's Choosier Bartering

Paint's Choosier Bartering

92 Downloads

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.

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 the tag pcb_piglin.

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.