Automatic Villager Trades

Automatic Villager Trades

Automates villager trading with a custom block that accepts items through an input hopper and outputs results automatically. Supports all standard trades and includes a Golden A...

ModMC 1.21 – 26.30Updated 5 months ago
cztlcztl1 items

Screenshots

Automatic Villager Trades — screenshot 1

Description

Place the Villager Trade Processor block, feed it the required trade items through an input hopper, and collect results from an output hopper. The block automatically performs villager trades, refreshes offers, and applies discounts when you use Golden Apples and Fermented Spider Eyes. Works with any standard villager trade and requires both a Behavior Pack and Resource Pack enabled

  • Place the Villager Trade Processor block

  • Input trade items using a hopper pointed into the block. First 2 slots are the only ones that let items through. Place 1 of the item you want to trade, and an emerald in these slots.

  • Output items are pulled by a hopper beneath or beside the block

  • Supports all normal villager trades

  • Discounts activate using Golden Apples Fermented Spider Eyes in slots 3 and 4.

Slot 5 isn't used, so I usually use a filler item. Trades work in both directions. If you input 32 additional sticks for example, it will consume them and put an emerald in the hopper below. If you insert a second emerald, it will give you 32 sticks.

Enable both BP and RP for full functionality

Images

Changelog

Comprehensive Changelog — Automatic Villager Trading v1.0

Core Features

Introduced the Villager Trade Processor block, enabling fully automated villager trading without needing an actual villager present.

Added hopper‑based automation, allowing items to be inserted and extracted seamlessly using standard Bedrock hoppers.

Implemented full trade cycle logic, including item validation, trade execution, and output routing.

Discount System Overhaul

Replaced Weakness Potion discount mechanic with a cleaner, more reliable system using:

Golden Apples

Fermented Spider Eyes

Added discount cycle tracking, ensuring trades refresh correctly and apply reduced costs when discount items are detected.

Improved discount stability, preventing inconsistent trade reductions and refresh bugs.

Block & UI Improvements

Updated block display name to properly show in‑game instead of the placeholder tile.cztl.tradeprocessor.

Added new high‑resolution pack icons for both BP and RP, matching the cyan→lime gradient branding.

Improved block behavior scripting, including better state handling, trade resets, and error fallback behavior.

Behavior Pack Enhancements

Refactored trade logic scripts for cleaner execution and improved reliability.

Optimized event triggers to reduce lag during rapid trade cycles.

Improved item parsing, ensuring correct recognition of trade inputs and discount items.

Cleaned manifest and UUID structure, ensuring compatibility with world imports and Modrinth ZIP packaging.

Resource Pack Enhancements

Updated block models and textures for clarity and visual consistency.

Improved animation controllers for smoother block behavior feedback.

Cleaned RP manifest, updated UUIDs, and validated pack format versions.

Packaging & Distribution

Separated BP and RP into proper folders for ZIP‑based Modrinth distribution.

Validated pack structure for Bedrock compatibility and correct world import behavior.

Prepared Modrinth‑ready ZIP, containing both packs at the top level for easy installation.

General Fixes & Stability

Fixed trade refresh timing issues that caused inconsistent output.

Improved hopper interaction logic to prevent item loss or duplication.

Enhanced error handling for invalid trades, missing items, or malformed inputs.

Reduced script overhead, improving performance on low‑end devices.

Download Files

Automatic_villager_trading1.02.5 MB.mcaddon
Source: MCPEDL · by cztl · CurseForge