QuestCreator - Basics : objectives - Historical

Applied By PYRRH4: Feb 12, 2018 at 1:24 AM

QuestCreator - Basics : objectives
[​IMG]

Table of contents :

Commands and permissions
Plugin storage
Create a quest
Basics : variables
Basics : preconditions
Basics : quest settings
Basics : quest requirements
Basics : quest rewards
Basics : quest flow
Basic : quest flow - tasks
> Basics : quest flow - objectives


The basics : quest flow - objectives


The objective settings are located in the element configuration section, after all the upper settings.

Code (Text):
flow:
  1:
    objective:
      # settings

Objective types and settings are listed below.

Code (Text):
# the player must enter a bed
objective:
  type: BED_ENTER
  # location (optional)
  location: world,0,0,0

# the player must leave a bed
objective:
  type: BED_LEAVE
  # location (optional)
  location: world,0,0,0

# the player must break blocks
objective:
  type: BLOCK_BREAK
  amount: 10
  # optional : block type and data
  block_type: STONE
  block_data: 0

# the player must break a block at a location
objective:
  type: BLOCK_BREAK_AT
  location: world,0,0,0

# the player must break blocks in an area
objective:
  type: BLOCK_BREAK_ZONE
  point_1: world,0,0,0
  point_2: world,10,10,10
  amount: 100
  # optional : block type and data
  block_type: STONE
  block_data: 0

# the player must click a block at a location
objective:
  type: BLOCK_CLICK
  location: world,0,0,0

# the player must set blocks on fire
objective:
  type: BLOCK_FIRE
  amount: 10
  # optional : block type and data
  block_type: WOOD
  block_data: 0

# the player must set a block on fire at a location
objective:
  type: BLOCK_FIRE_AT
  location: world,0,0,0

# the player must place blocks
objective:
  type: BLOCK_PLACE
  amount: 10
  # optional : block type and data
  block_type: COBBLESTONE
  block_data: 0

# the player must place a block at a location
objective:
  type: BLOCK_PLACE_AT
  location: world,0,0,0
  # optional : block type and data
  block_type: COBBLESTONE
  block_data: 0

# the player must place blocks in a zone
objective:
  type: BLOCK_PLACE_ZONE
  point_1: world,0,0,0
  point_2: world,10,10,10
  amount: 100
  # optional : block type and data
  block_type: STONE
  block_data: 0

# the player must say something in the chat
objective:
  type: CHAT
  message: 'This server is amazing.'

# the player must execute a command
objective:
  type: COMMAND
  command: 'spawn'

# the player must land with an elytra
objective:
  type: ELYTRA_LAND
  # optional : location
  location: world,0,0,0

# the player must click a button
objective:
  type: ENABLE_BUTTON
  # optional : location
  location: world,0,0,0

# the player must walk on a pressure plate
objective:
  type: ENABLE_PRESSURE_PLATE
  # optional : location
  location: world,0,0,0

# the player must fill a bucket
objective:
  type: FILL_BUCKET
  # optional : bucket type (WATER, LAVA, MILK)
  bucket_type: WATER

# the player must fish some fishes \o/
objective:
  type: FISH
  amount: 3

# the player must frost some water blocks with frost walker boots
objective:
  type: FROST_WALKER
  amount: 16

# the player must jump with a horse
objective:
  type: HORSE_JUMP
  amount: 10

# the player must consume items
objective:
  type: ITEM_CONSUME
  item:
    type: CAKE
    amount: 10

# the player must craft items
objective:
  type: ITEM_CRAFT
  item:
    type: DIAMOND_SWORD
    amount: 1

# the player must drop an item
objective:
  type: ITEM_DROP
  item:
    type: DIRT
    amount: 64

# the player must enchant items
objective:
  type: ITEM_ENCHANT
  item:
    type: DIAMOND_PICKAXE
    data: 0
  enchant_type: DIG_SPEED
  echant_min_level: 1

# the player must pickup items
objective:
  type: ITEM_PICKUP
  item:
    type: STONE
    data: 0

# the player must jump
objective:
  type: JUMP
  amount: 10

# the player must toggle a lever
objective:
  type: LEVER_TOGGLE
  # optional : location
  location: world,0,0,0

# the player must gain some XP in a MCMMO skill
objective:
  type: MCMMO_XP
  skill: skill_name
  amount: 100

# the player must dismount a mob
objective:
  type: MOB_DISMOUNT
  # optional : mob type
  mob_type: PIG

# the player must dismount a named mob
objective:
  type: MOB_DISMOUNT_NAMED
  mob_name: '&dCustom mob'

# the player must kill mobs
objective:
  type: MOB_KILL
  amount: 5
  # optional : mob_type
  mob_type: ZOMBIE

# the player must kill a named mob
objective:
  type: MOB_KILL_NAMED
  mob_name: '&dCustom mob'

# the player must mount a mob
objective:
  type: MOB_MOUNT
  # optional : mob type
  mob_type: PIG

# the player must mount a named mob
objective:
  type: MOB_MOUNT_NAMED
  mob_name: '&dCustom mob'

# the player must shear mobs
objective:
  type: MOB_SHEAR
  amount: 10

# the player must shear named mobs
objective:
  type: MOB_SHEAR_NAMED
  amount: 10
  mob_name: '&dCustom mob'

# the player must tame mobs
objective:
  type: MOB_TAME
  amount: 3
  # optional : mob type
  mob_type: WOLF

# the player must tame named mobs
objective:
  type: MOB_TAME_NAMED
  amount: 3
  mob_name: '&dCustom mob'

# the player must kill a MythicMobs mob
objective:
  type: MYTHICMOBS_KILL
  mob_name: your_mythicmob_name
  amount: 5

# the player must interact with a npc
objective:
  type: NPC_INTERACT
  id: 0

# the player must interact with a npc with some items
objective:
  type: NPC_INTERACT_ITEM
  id: 0
  items:
    1:
      type: STONE
      amount: 128

# the player must interact with a npc with an item in his hand
objective:
  type: NPC_INTERACT_ITEM_HAND
  id: 0
  item:
    type: STONE
    data: 0

# the player must kill a NPC
objective:
  type: NPC_KILL
  id: 0

# the player must enter a portal
objective:
  type: PORTAL_ENTER

# the player must exit a portal
objective:
  type: PORTAL_EXIT

# the player must throw potions
objective:
  type: POTION_THROW
  amount: 5
  # optional : location and potion type
  location: world,0,0,0
  potion_type: BLINDNESS

# the player must shoot a projectile
objective:
  type: PROJECTILE_SHOOT
  # optional : location and projectile type (ARROW, EGG, SNOWBALL)
  location: world,0,0,0
  projectile_type: SNOWBALL

# the player must have a precondition
objective:
  type: PRECONDITION
  precondition: 'var [variable] [operation] [value]'

# the player must open a recipient
objective:
  type: RECIPIENT_OPEN
  # optional : location
  location: world,0,0,0

# the player must regain health
objective:
  type: REGAIN_HEALTH
  # end : the health that the player must have
  end: 20.0

# the player must gain xp in a SkillAPI class
objective:
  type: SKILLAPI_XP
  class: class_name
  amount: 100

# the player must sneak for a specific time
objective:
  type: SNEAK
  seconds: 5

# the player must toggle sneak
objective:
  type: SNEAK_TOGGLE
  amount: 10

# the player must enter a vehicle
objective:
  type: VEHICLE_ENTER
  # optional : vehicle type (BOAT, MINECART)
  vehicle_type: BOAT

# the player must exit a vehicle
objective:
  type: VEHICLE_EXIT
  # optional : vehicle type (BOAT, MINECART)
  vehicle_type: BOAT

# the player must walk for a specific distance
objective:
  type: WALK
  distance: 30.5

# the player must walk away from a location
objective:
  type: WALK_AWAY_FROM
  location: world,0,0,0
  distance: 10.0

# the player must walk to a location
objective:
  type: WALK_TO
  location: world,0,0,0
  # tolerance : the tolerance
  tolerance: 3.0

# the player must gain XP
objective:
  type: XP
  amount: 10

# the player must throw XP bottles
objective:
  type: XP_BOTTLE
  amount: 10
  # optional : location
  location: world,0,0,0