Quests

Notepad++ language file.

Quest file
The quest file must have a certain structure.

The Structure is based on JSON.

In the first object can be are
"!/ All marked with * are important and cant be missed. /!"

In the giver object can be are
"!/ All marked with * are important and cant be missed. /!"

The object must also contain 2 list of objects:
 * 1) A list with the JSON key "quests" containing all quest steps of the quest
 * 2) A list with the JSON key "rewards" containing all rewards for the player after the quest finish

Quest Example
In this quest you get the quest from a villager with the name "Smith Andrew" that walk the path "AndrewPath".
 * You must go in the radius of 40 blocks from the coordinate: x1 y90 z1

You become 4 level xp and a diamond sword with the name "Super Sword", a lore, and the enchantments
 * You must break a diamond block, kill a pig and get one diamond
 * sharpness 3
 * fire aspect 1

Also you got unlocked the quest with the id 2. {  "name": "TestQuest", "id": 1, "hasinfo": false, "giver": { "isplayer": false, "type": "Villager", "name": "Smith Andrew", "walk": true, "path": "AndrewPath" },  "quests": [ {      "type": "go", "radius": 40, "loc": { "world": "world", "x": 1, "y": 90, "z": 1 }    },     {       "type": "break", "blocks": [ {          "type": "Diamond_block" }      ]     },     {       "type": "kill", "entity": { "isplayer": false, "type": "pig" }    },     {       "type": "get", "items": [ {          "type": "diamond", "amount": 1 }      ]     }   ],   "rewards": [ {      "type": "xp", "level": true, "value": 10 },    {       "type": "quest", "id": 2 },    {       "type": "get", "items": [ {          "type": "Diamond_sword", "name": "&6Super eSword", "amount": 1, "lore": ["&fYou get this sword at the end of a quest."], "enchantments": [ {              "type": "Damage_All", "level": 3 },            {               "type": "Fire_Aspect", "level": 1 }          ]         }       ]     }   ] }