QuestCreator - Basics : quest flow
-
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
Basics : quest flow - tasks
Basics : quest flow - objectives
Developpers API
The basics : quest flow
It's the most important part of the configuration : what will happen in this quest ?
Every element that happen in the quest is located under the flow section.
An element is considered as a configuration section with its own settings.
Code (Text):flow:
1:
# settings
2:
# settings
# etc
There are two element types :
- task, elements that will execute actions (send a message, place a block, teleport an NPC, drop an item, etc). The player has no influence on those.
- objective, elements that the player will have to do (walk on X blocs, kill a mob, break a block, enchant an item, throw a potion, sneak, enter a vehicle, etc)
Quest flow : settings
Every element can have "universal" settings regardless of his type.
wait
Code (Text):flow:
1:
wait: 1
preconditions
Code (Text):flow:
1:
preconditions: 'var [variable] [operation] [value]'
For details about [variable], [operation] and [value], see Requirement precondition upper.
This is optional.
name
Code (Text):flow:
1:
name: '&aDisplay name of this thing'
forbidden
Code (Text):flow:
1:
forbidden:
- PICKUP_ITEM
- DROP_ITEM
Complete list of forbidden actions types :
Code (Text):
MOVE
ITEM_PICKUP
ITEM_DROP
ITEM_ENCHANT
ITEM_CONSUME
BLOCK_PLACE
BLOCK_BREAK
ENTITY_TAME
ENTITY_MOUNT
ENTITY_SHEAR
COMMAND
CHAT
INTERACT
BED_ENTER
FISH
VEHICLE_ENTER
VEHICLE_EXIT
drop_item
Code (Text):flow:
1:
drop_item:
item:
type: STONE
amount: 16
location: world,0,0,0
You can even add to the item name (text), data (number), lore (list) or enchants (list of enchants/levels, example DAMAGE_ALL,1).
This is optional.
custom_actionbar
Code (Text):flow:
1:
custom_actionbar: '&a$QUEST | &a$OBJECTIVE'
This is optional. - Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM