Tutorials/Integration into Quests

Requirements

How to hand out the key – Step by Step

How to get the identificator

  • Craft your lock and drop a lockpick on it to create a key.
  • Rightclick the door with the lock to lock it
  • Clear your inventory from everything remaining except the key (This includes ARMOR)
  • Disconnect from the server
  • Download your player file (ServerRootDir\<world>\players\<name>.dat)
  • Open the player file with NBT-Explorer
  • Navigate to the list tag "Inventory"
  • Open the first (and only) tag compound in it
  • Navigate to display->Lore
  • Copy the first (and also only) line in it

This is the identificator (§0#§k1387891958455§r)

How to give a player the key with Quests

Create a new event with /quests events and do everthing I wrote on the Screenshot:

  1. Set this to 369
  2. Set this to the amount you want
  3. THIS IS IMPORTANT: Set it to 1
  4. Leave this alone
  5. Set this to some Name, does not matter.
  6. THIS IS IMPORTANT: One Line in this has to be the Identifier (in the exaple it is §0#§k1387891958455§r ). MineCraft is not able to write § in chat so just write something in 6 we will change that later.

If everything is with your liking then save and close events editor.

Then open the file ServerRootDir\plugins\quests\events.yaml

Quests writes the newest event always to the bottom of the file. It should look like this:

Eventname:
    items:
        - id-369:amount-1:data-1:name-§fSomeName§r:lore-REPLACETHISWITHIDENTIFIER

Save and close events file and reload (not only questreload!) or restart the server. You are done. Have fun with your keys =)


Comments

Posts Quoted:
Reply
Clear All Quotes