Block Villager Trades
1.1.0The plugin allows to block/remove villager trades based on a configurable list of items and enchantments.
Block Villager Trades
Block Villager Trades — a plugin that allows you to block or remove villager trades based on a configurable list of items and enchantments.
Features
- Full item blocking - specify item/material name you want to block
- Blocking by enchantments - if an item contains one of the specified enchantments, the trade will be blocked. You can also specify level of blocked enchantment. If not set all levels of the enchantment will be blocked.
- Two modes of operation
- Block trade — the trade remains visible but cannot be used/restock.
- Remove trade — the blocked trade disappears from the villager’s interface. WARNING: This will permanently delete the trade, and it will not be restored even if you remove the item from the blocked list.
Configuration example
# BlockVillagerTrades Config File
# mode property specifies how to handle items from blocked-items.
# "block" set maxUses for the trade to 0
# "remove" removes the trade completely. WARNING: This will delete trades permanently
# and not restore them when the item is removed from the blocked-items list.
mode: block
# if true plugin will affect Wandering Traders
block-wandering-trader-items: false
blocked-items:
# you can block items by their material name
- EMERALD
- ENCHANTED_BOOK:
# you can also block specific enchantments on items
enchantments:
# if no level is specified, all levels of the enchantment are blocked
- MENDING
# also you can specify levels
- UNBREAKING: 3
- EFFICIENCY: 4
- EFFICIENCY: 5
- DIAMOND_PICKAXE:
enchantments:
- SILK_TOUCH
- FORTUNE: 3
- DIAMOND_AXE
- DIAMOND_SHOVEL
- DIAMOND_SWORD
Use cases
- Prevent trades with rare or overpowered items
- Restrict trades with enchanted books
- Balance the server economy without altering vanilla mechanics
Links
Feel free to suggest some features or report bugs. My email: [email protected]
Similar projects
Config →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
WorldEdit
A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting. Use it in creative, or use it temporarily in survival.
11.6MSueta
LuckPerms
A permissions plugin/mod for Minecraft servers.
2.8MSueta
ItemSwapper
Inventory update concept for hotswapping items.
2.1MSueta
SkinsRestorer
🎨 Ability to restore/change skins on servers! (Offline and Online Mode)
1.6MSueta