HomeJavaModsDispenser Vilager Trading
Dispenser Vilager Trading
ModsJava

Dispenser Vilager Trading

by afekaoh · on Modrinth

⬇ Download on Modrinth

Dispenser Villager Trading

Dispenser Villager Trading is a Paper plugin that allows dispensers to perform villager trades automatically.
When a dispenser faces a villager and contains the required ingredients for one of the villager’s trades, it will automatically:

This plugin also adds a villager-only pressure plate that only villagers can activate.


Features


Public API (Event System)

A dedicated API module exposes events for other plugins.

The first event is:

DispenserVillagerTradeDepositEvent

This event fires whenever the plugin attempts to deposit a villager trade result into a chest.

Available methods:

public Inventory getSource();
public Inventory getDestination();

public ItemStack getItem();
public void setItem(ItemStack item);

public boolean isCancelled();
public void setCancelled(boolean cancel);

public HandlerList getHandlers();
public static HandlerList getHandlerList();

Requirements


Installation

  1. Build the plugin JAR (see below) or download one from the releases page.
  2. Place the JAR into your server’s plugins/ directory.
  3. Start or reload your Paper server.

Building

This project uses Gradle. Common tasks: You can build only the plugin JAR, copy it to a server, or run a local test server.


Configuration

The generated config.yml provides the following option:


Usage Tips


Notes

The plugin is designed specifically for Paper and may not function correctly on other server types.

It aims to preserve core vanilla behavior while adding helpful mechanics:


Future Plans


Feedback and Contributions

Feedback, issues, and pull requests are welcome!
Visit the GitHub repository: DispenserVillagerTrading

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more