villager.yml
Here's the provided file for registering a custom villager profession and trade table:
Villager Configuration (villager.yml):
villagers:
test:
name: "Super Master" # Villager name
namespace: "coreextensions" # Namespace
id: "meqwer" # ID
properties:
block: "minecraft:command_block" # Work block
key:
KeyA: # Trade item 1
level: 1 # Required level
maxUse: 6 # Maximum trade uses
inputA: "minecraft:diamond" # Required item
countInputA: 5 # Required item count
inputB: "minecraft:diamond_block" # Remove this line if the second required item doesn't exist
countInputA: 10 # Remove this line if the second required item doesn't exist
result: "minecraft:bedrock" # Resulting item from the trade
countResult: 5 # Resulting item count
KeyBqwer:
level: 2
inputA: "minecraft:bedrock"
countInputA: 4
inputB: "minecraft:diamond"
countInputA: 1
result: "minecraft:command_block"
countResult: 5
Please note the following:
After adding the YAML file, make sure to add content to the
acquirable_job_site.json
file located in"data\minecraft\tags\point_of_interest_type"
. If the file and folder do not exist, create them. The content to add is:{ "replace": false, "values": [ "coreextensions:meqwer_poi" ] }
Remember to append
_poi
to the ID as mentioned.Make sure to adjust the trade details according to your specific needs. You can add more trade items following the provided format, and customize the trade levels, required items, and resulting items accordingly.
This configuration defines a custom villager profession named "Super Master" with a set of trade items and their properties.
Last updated