Skip to content

heypr/Tradeflux

Repository files navigation

Tradeflux

Tradeflux is an incredibly simple Minecraft plugin that automates villager behavior to enhance server-side performance and reduce unnecessary entity processing. It disables villagers' awareness when players are nearby and have jobs/job sites, preventing them from wandering or restocking trades unnecessarily.

Features

  • Automatic villager awareness toggling based on proximity, profession, and job site presence.
  • Periodic trade restocking reset for villagers.
  • Commands to manually enable/disable all villagers or reload the config.
  • Configurable task intervals via config.yml.

Installation

  1. Download the plugin JAR from the SpigotMC page.
  2. Place the JAR in your server's plugins folder.
  3. Restart the server to generate default files.
  4. Adjust the values in the config.yml file as needed.

Configuration

Edit config.yml in the plugin's folder:

  • brain-task-time: Interval (in seconds) to check and toggle villager awareness (default: 60).
  • restocking-task-time: Interval (in seconds) to reset trade uses (default: 600).

Commands

  • /tradefluxreload (aliases: tfr, tfreload): Reloads the config. Permission: tradeflux.reload.
  • /tradefluxenableallvillagers (aliases: tfeav, tfeavillagers): Enables awareness for all villagers. Permission: tradeflux.enableallvillagers.
  • /tradefluxdisableallvillagers (aliases: tfdav, tfdavillagers): Disables awareness for all villagers. Permission: tradeflux.disableallvillagers.

Permissions

  • tradeflux.reload
  • tradeflux.enableallvillagers
  • tradeflux.disableallvillagers

Compatibility

  • 1.20.6+
  • No known compatibility issues at this time.

Support

For support, visit my Discord support server.

About

A villager brain manager plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages