Specific types

Summary

VILLAGER_TRADE

For this type, you can specify a required profession (villager_profession) or level (`villager_level`) for the exchange to be validated. You can specify both, only one of them, or neither: the choice is yours. Here you can see all the existing professions. And here, more information, especially on the levels.

Basic trade quest :
1:
  name: "Cookieeeeees"
  menu_item: COOKIE
  description:
    - "&eGet 32 cookies from"
    - "&ea &afarmer &evillager level &b3&e."
    - "&aWin &b5 000$&a."
  quest_type: VILLAGER_TRADE
  required: COOKIE
  required_amount: 32
  reward:
    reward_type: MONEY
    amount: 5000
With profession and level :
1:
  name: "Cookieeeeees"
  menu_item: COOKIE
  description:
    - "&eGet 32 cookies from"
    - "&ea &afarmer &evillager level &b3&e."
    - "&aWin &b5 000$&a."
  quest_type: VILLAGER_TRADE
  villager_profession: FARMER
  villager_level: 3
  required: COOKIE
  required_amount: 32
  reward:
    reward_type: MONEY
    amount: 5000

LOCATION

For this type of quest, you must specify a world and X, Y and Z coordinates. For example, if I want the player to go in this location, which is in the world Spawn : The coordinates will be like that : location: world: Spawn x: -3 y: 110 z: 26

You can also specify a radius, to create a detection zone. location: ... radius: 5 Here, the quest will be validated if the player is within 5 blocks of each side of the destination coordinate.

Location quest :
1:
  name: "&aExplorer"
  menu_item: SKELETON_SKULL
  description:
    - "&cGo to the following coordinates:"
    - "&cWorld: &bSpawn"
    - "&cX: &b-4"
    - "&cY: &b103"
    - "&cZ: &b45"
    - ""
    - "&6Reward:"
    - "&7A \"hello\" message from the server :)"
  quest_type: LOCATION
  location:
    world: world
    x: -4
    y: 103
    z: 7
    radius: 3
  reward:
    reward_type: COMMAND
    commands:
      - "say Hello"

Last updated