Skip to main content

No project description provided

Project description

Mortal Quest Development Kit

The Mortal Quest Development Kit (MQdk) was created to be used to create Mortal Quest mods with ease.

Step by Step Guide For Beginners

Installation

NOTE: This documentation is for Windows operating systems

To use the MQdk, you need to have Python installed on your computer. To check this, type the following command in the terminal:

python --version

Once you have confirmed that you have python install onto your computer, run this pip command in the terminal to install MQdk:

pip install mqdk

To check that it installed correctly, run this command:

pip show mqdk

You now have successfully installed the Mortal Quest Development Kit!

Continue following this documentation to see how to create your first mod.


Your First Mod

In this section of the documentation, you will learn how to create your first mod. This mod will change the durablility of trees.

Getting Started

Start by creating a folder and opening it in your IDE of choice. This will be your project folder. Next, create a main.py file, and import the MQdk library by using the following code:

from MQdk import mqdk # Import the Mortal Quest Development Kit

After you have imported the development kit, you need to initialize it by adding this line of code:

from MQdk import mqdk # Import the Mortal Quest Development Kit
mqdk.init() # Initalize needed library variables

If you do not initialize the library, your mod will not build correctly, leading to errors.


Modifing Tree Durablility

As stated before, in this mod we will be modifing the durablity of the trees. Let me explain a few things before we start:

  • Mortal Quest 'features' are static objects that get placed in the world, this includes trees, rocks, grass, etc.
  • Durability is one of many attributes features have that defines the amount of times you need to click itself for it to break.

Alright, now that we have an understanding of what features are, lets add a line of code that modifies the durablility of trees. To do this, we need to run the 'modify' function within the MQdk, here is an example:

mqdk.modify.Feature("Trees", durability=3) # Modifies the feature 'Trees' to have a duriblity of 3

That line of code modifies the feature 'Trees' to have a durablility of 3, meaning you'll have to click tress three times for it to destroy.


Packaging The Mod

At the end of your mod file, you need to add a line of code to package (build) the mod into a file Mortal Quest will understand. This can be done like this:

mqdk.package() # Optional argument for build path, defaulted to 'builds/'

MQdk Functions

This section is a list of all MQdk functions with examples

Modify

Modify is a function that allows you to change existing objects in Mortal Quest. This includes Features.

Feature

Features are static objects that get placed in the world during creation.

mqdk.modify.Feature(FEATURE_NAME, FEATURE_DATA)

FEATURE NAME LIST

  • Chest
    • Data code: 0
  • Trees
    • Data code: 0
  • Knoxwood
    • Data code: 0
  • Grass
    • Data code: 0
  • Beehive
    • Data code: 0
  • Pebble
    • Data code: 0
  • Seashell
    • Data code: 0
  • Stone
    • Data code: 0
  • Iron
    • Data code: 0
  • Gold
    • Data code: 0
  • Emerald
    • Data code: 0
  • Diamond
    • Data code: 0
  • Titanium
    • Data code: 0

FEATURE DATA LIST

  • Data code: 0
    • Durablility

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MQdk-0.0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

MQdk-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file MQdk-0.0.4.tar.gz.

File metadata

  • Download URL: MQdk-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for MQdk-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2c72fc7990c714bdf740b25360ca3aceb9e6d324800f7342b1b0a720c187b076
MD5 79bebcb0f1782b1e016fb75768841fe1
BLAKE2b-256 54af9d7442b86d3d85233ece6fa63c346b46b4975136f742b58c35d794382a2a

See more details on using hashes here.

File details

Details for the file MQdk-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: MQdk-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for MQdk-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 49fa5858bbcee4b193822e9b78debac42846e6ae5720a1b85124c67547119564
MD5 66d74351d9bc4748988be81834d2b65a
BLAKE2b-256 9adc424ae9b2ec3b9a3c3691e5525534ad46560054e3e8e2b8e5212ea2c27378

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page