bartering (task type)

Not released yet (dev builds)

Minecraft 1.16.5+ required

Make a bartering interaction with a piglin.

Options

Key Description Type Required Default Notes
amount The number of items. Integer Yes - -
input The specific item to be picked up by a piglin. Material, or ItemStack No - Accepts standard item definition. Please see this list (1.13+) or this list (1.8-1.12) for material names.
input-exact-match Whether the input item should exactly match what is defined. Boolean No true -
output The specific item to be dropped by a piglin. Material, or ItemStack No - Accepts standard item definition. Please see this list (1.13+) or this list (1.8-1.12) for material names.
output-exact-match Whether the output item should exactly match what is defined. Boolean No true -
mode The specific mode of bartering. String No output One of: input, output.
worlds Worlds which should count towards the progress. List of world names No - -

Examples

Get 100 spectral arrows for gold ingots from a piglin:

barter_spectral_arrows:
  type: "bartering"
  amount: 100                           # amount of items to be dropped (with output mode) by a piglin
  mode: output                          # (OPTIONAL) whether output or input items should count towards the progress
  input: GOLD_INGOT                     # (OPTIONAL) the item to be picked up by a piglin
  output: SPECTRAL_ARROW                # (OPTIONAL) the item to be dropped by a piglin
  input-exact-match: false              # (OPTIONAL) we don't care about item nbt
  output-exact-match: false             # (OPTIONAL) we don't care about item nbt
  worlds:                               # (OPTIONAL) restrict to certain worlds
    - "world_nether"

Back to top

This wiki serves as a manual for Quests however there is no guarantee that the information is up-to-date or complete. As per the license, this software provides absolutely no warranty, nor are the maintainers liable for any damages. Please see the license text for more information.