▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Fair Bartering
Fair Bartering

Fair Bartering

A lightweight, configurable mod that is modpack and vanilla friendly, focused on tweaking Piglin bartering behavior.

115
2

Fair Bartering

A lightweight, configurable mod that is modpack and vanilla friendly, focused on tweaking Piglin bartering behavior. By default, almost all piglin-loved items are now tradeable currency, with some of them getting you better trades and others getting you multiple trades at once, like the gold block which is the equivalent of bartering nine gold ingots at once! You can also add modded items to the config, so it integrated nicely in small and big modpacks.

💗 Sponsor

⁉️ Support

Questions about the mod? You can join my Discord server at discord.gg/cTY4ME6Bkn!

🖼️ Examples

Lots of new cool items to barter with! Lots of new cool items to barter with!

Bartering with enchanted golden apples Bartering away all your enchanted golden apples yields nice trades :)

I bet you've never seen that before, huh? I bet you've never seen that before, huh? (not default behaviour)

🤓 Features

  • You can now trade gold blocks to get 9 trades at once! Finally, quick and efficient bartering, nice for vanilla+ modpacks to make farming some resources easier with vanilla mechanics!
  • Customizable item-specific delay between each trade
  • Customizable item tiers based on item's rarity
  • Add your own items as custom currencies, even modded ones!

🛠️ Configuration

Default

By default, the following items can be used as a bartering currency:

ItemTradesTierDelay (seconds)
Gold Ingot1Common6
Gold Block9Common12
Gold Nugget1Trash2.5
Gold Ore1Trash4
Deepslate Gold Ore1Trash5
Nether Gold Ore1Trash3.5
Raw Gold1Trash6
Raw Gold Block9Trash12
Clock1Rare9
Golden Apple2Rare12
Enchanted Golden Apple4Legendary18
Gilded Blackstone1Rare9
Glistering Melon Slice2Trash5
Golden Carrot2Trash5
Golden Axe1Common7
Golden Sword2Trash7
Golden Spear2Trash7
Golden Shovel2Trash7
Golden Pickaxe1Common7
Golden Hoe2Trash7
Golden Horse Armor4Rare9
Golden Nautilus Armor4Rare9
Bell3Rare10
Light Weighted Pressure Plate1Common9

Do note that golden armor pieces are not included by default in order not to clash with the vanilla's mechanic which allows piglins to wear picked-up armor

And below are the modified loot tables (only weights are changed from vanilla) based on the tier of the item being bartered:

ItemCommon (Vanilla)TrashRareLegendary
Enchanted Book (random level of Soul Speed)5 (~1.07%)014 (~3.98%)40 (~25.6%)
Iron Boots (random level of Soul Speed)8 (~1.71%)016 (~4.54%)24 (~15.4%)
Splash Potion of Fire Resistance8 (~1.71%)016 (~4.54%)24 (~15.4%)
Potion of Fire Resistance8 (~1.71%)016 (~4.54%)24 (~15.4%)
Water Bottle10 (~2.13%)020 (~5.68%)10 (~6.41%)
Dried Ghast10 (~2.13%)020 (~5.68%)10 (~6.41%)
Iron Nugget (x10-36)10 (~2.13%)020 (~5.68%)10 (~6.41%)
Ender Pearl (x2-4)10 (~2.13%)020 (~5.68%)10 (~6.41%)
String (x3-9)20 (~4.26%)10 (~2.63%)15 (~4.26%)2 (~1.28%)
Nether Quartz (x5-12)20 (~4.26%)10 (~2.63%)15 (~4.26%)2 (~1.28%)
Obsidian40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Fire Charge40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Crying Obsidian (x1-3)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Leather (x2-4)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Soul Sand (x2-8)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Nether Brick (x2-8)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Spectral Arrow (x6-12)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Gravel (x8-16)40 (~8.53%)40 (~10.52%)20 (~5.68%)0
Blackstone (x8-16)40 (~8.53%)40 (~10.52%)20 (~5.68%)0

Customize

The config can be found in the config folder of your instance, and is named fairbartering.json5. It contains a list of custom barter currencies written in the following format:

[
    ...
    {
        "item": "minecraft:gold_ingot",
        "worth": 1,
        "tier": "COMMON",
        "delay": 1.0
    },
    ...
]
// More detailed info can be found inside the config file

Each item object has four parameters :

  • item : the name of the item, including its namespace, in the format namespace:item_name.
  • worth : the number of trades made at once when bartering the item.
  • tier : specifies which loot table the trades will use. Can be one of COMMON, TRASH, RARE or LEGENDARY. See above for more details.
  • delay : a multiplication factor for the time you'll have to wait to make a trade with the item. A factor of 1.0 is vanilla (6 seconds), while a factor of 2.0 means the trade will take roughly 12 seconds.

Do note that you have to restart the game in order for any changes to take effect.

📜 Dependencies

⏱️ Future Updates

  • UI config
  • Better customization of loot table tiers
  • Backport to older Minecraft versions
  • Provide more preset configs for different playstyles
  • Not having to restart the game to reload the config
  • If you have a suggestion, suggest it here!

🐛 Known Issues

  • None at the moment. If you find one, please report it here

©️ Credits

Icon made with Inkscape and Blockbench using Twemoji and FiraCode Multiloader Template by jaredlll08

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная