VillagerTrades

VillagerTrades 1.0.0

Compatible API Versions
1.0.0, 2.0.0
Sourcecode
https://github.com/Rakilem?tab=repositories
Version: 1.0.0
Author: Rakilem YT


Description:
VillagerTrades is a plugin for NukkitX that adds a simple and easy-to-use trading system with villagers, similar to the one in vanilla Minecraft.
When a player right-clicks a villager, a menu appears showing the available trades, which can be fully customized in the config.yml file — including the items, amounts, and trade range.
For now, the plugin supports basic trades using emeralds, but more trade types and villager professions will be added in future updates.


Note:
This plugin is still in development. I’ll be adding more villager trade versions and new features little by little, as I continue learning and improving my programming skills.

YAML:
menu-title: "Tradeos del Aldeano"
menu-radius: 2.0

trades:
  - cost:
      id: 388
      amount: 2
    result:
      id: 265       # Lingote de hierro
      amount: 5

  - cost:
      id: 388
      amount: 4
    result:
      id: 266       # Lingote de oro
      amount: 3

  - cost:
      id: 388
      amount: 6
    result:
      id: 264       # Diamante
      amount: 1
YAML:
menu:
  title: "Intercambios del Aldeano"
  content: "Selecciona un intercambio:"
  trade-success: "Has realizado el intercambio con éxito."
  trade-fail: "No tienes los materiales necesarios: {need_amount}x {need_item}."
  trade-format: "{cost_amount}x {cost_item} → {result_amount}x {result_item}"
  • Like
Reactions: DimBoy and indra87g
Author
Rakilem
Downloads
38
Views
156
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Rakilem

  • TeleportPads
    TeleportPads
    TeleportPads: Use pressure plates for instant travel between locations in Minecraft effortlessly.
  • BloodParticles
    BloodParticles
    BloodParticles: Adds red particle visual effects upon taking damage in Minecraft.
  • MobHealthTag
    MobHealthTag
    The MobHealthTag plugin adds dynamic floating name tags above all hostile and passive mobs in Nukkit
  • LobbySpawn
    LobbySpawn
    This plugin teleports players to a fixed lobby location every time they join the server.
  • BlockCommands
    BlockCommands
    Configure blocked commands per world
Top