RPProfessions - Discontinued. Use the Free Version Instead icon

RPProfessions - Discontinued. Use the Free Version Instead -----

Create Immersive RP Professions Focused on Crafting



v1.2.0 Villager Trade Update
New Feature Update

You can now add custom villager trades to your villagers

Read the entire update post!

[​IMG]


New Feature:
  • Added trades folder containing villager trades configuration
  • Trades can use RPProfessions items and patterns, MMOitems items and Mythicmob items
  • All trade options are configurable
Bug Fixes:
  • Fixed an issue preventing monsters to drop items configured in the drops.yml file
To add villager trades go in /trades folder and create a .yml file named after the world you want those trades to be in (e.g. "survival_world1.yml")
Here is an example in /trades/world.yml:

Code (YAML):
# The villager profession. Must match one of the Minecraft villager profession
WEAPONSMITH
:
  trades-per-level
: 1-2
  IRON_TO_SWORD
:
    # The relative chance for this trade to be chosen
    chance
: 1
    # The level the villager must be to offer this trade
    level
: 1
    # Number of uses before the villager is depleted
    max-use
: 8
    # The left trade input slot
    first-ingredient
:
      material
: IRON_INGOT
      amount
: 3
    # The result of the trade
    result
:
      material
: IRON_SWORD
      display-name
: "&fSteel Sword"
      enchantments
:
        unbreaking
: 2
        sharpness
: 1
    # Whether the player gets experience for completing that trade
    experience-reward
: true
    villager-experience-reward
: 2
  COAL_TO_STEEL
:
    chance
: 2
    level
: 1
    max-use
: 12
    first-ingredient
:
      material
: COAL
      amount
: 8
    # The result is the RPProfession item named STEEL
    result
: STEEL_INGOT
    experience-reward
: true
    villager-experience-reward
: 1
    villager-experience-reward
: 1
  COPPER_TO_EMERALD
:
    chance
: 2
    level
: 1
    max-use
: 8
    first-ingredient
:
      material
: COPPER_INGOT
      amount
: 12
    result
: EMERALD
  EMERALD_TO_STEEL
:
    # This trade is always added regardless of the trades per level value
    chance
: ALWAYS
    level
: 2
    max-use
: 4
    first-ingredient
:
      material
: EMERALD
      amount
: 10
    # The right trade input slot
    second-ingredient
:
      item
: STEEL_INGOT
      amount
: 8
    # The result is the pattern teaching the craft BRONZE_INGOT. See pattern section of the wiki for further information
    result
: pattern:BRONZE_INGOT
    experience-reward
: true
    villager-experience-reward
: 1
I will update the wiki soon to reflect the changes. For now use the provided example
----------, Jun 5, 2023
Resource Information
Author:
----------
Total Downloads: 32
First Release: Mar 3, 2023
Last Update: Feb 21, 2024
Category: ---------------
All-Time Rating:
6 ratings
Find more info at gilles1348.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings