Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M mmoitems
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • mmoitems
  • Wiki
  • Obtaining a random item

Last edited by Indyuce Jul 20, 2020
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Obtaining a random item

Using /mi generate

/mi generate lets you generate a random item based on specific criterias that you give as command arguments. The command format is the following: /mi generate <player> (extra-args).

<player> indicates what player you will be giving the random item to. It is really important because it also represents the RPG player data the item will be built onto. Let's say the command sender is level 20 and the target player is level 10. The item level will not scale on 20 but rather 10.

The available command arguments are listed below:

Argument Use
-matchlevel The item level will match the target player's level.
-matchclass The item is guaranteed to be usable (class requirements) by the target player.
-gimme Adds the item to your inventory instead, hence the <player> remark.
-class:<class-name> The item is guaranteed to be usable by the given class.
-level:<integer> The item is guaranteed to have level X.
-tier:<tier-name> The item is guaranteed to have Item Tiers Y.
-type:<item-type> Choose the Item-Types.
-id:<id> Use that if you want a specific Item Generator Templates to be used.

Keep in mind these arguments are all optional (which is what makes the item gen so powerful) and act as "filters" when MMOItems determines what item template, tier and item level it will use. Example use: we're giving to a player a high tier weapon that matches their level and class:

/mi generate PlayerName -matchlevel -matchclass -tier:rare

Using MythicMobs drop tables

Still being worked on

Using MMOCore drop tables

Use this MMOCore table item if you want to add a specific item generator template to one of your MMOCore drop tables: ``` gentemplate{id=TEMPLATE_ID;tier=TIER_NAME;level=<int>;match-level=<true/false>} <chance> <min-max> ```

Argument Use
id=TEMPLATE_ID Choose what item gen template you are using.
level=<item-level> Forces the item level to be around level Y.
tier=ITEM_TIER_ID Forces the item to be tier X.
match-level=<true/false> The item level will match the player's level.

Use this MMOCore table item if you do not want to use a specific gen template, but rather choose one randomly from all registered templates based on specific criterias. All the previous parameters (except for id) can be used on that format as well: ``` miloot{type=ITEM_TYPE_ID;class=PLAYER_CLASS;match-class=<true/false>;tier=TIER_NAME;level=<int>;match-level=<true/false>} <chance> <min-max> ```

Argument Use
type=ITEM_TYPE_ID Forces the item to be of a specific type.
class="Class Name" The item is guaranteed to be usable by a certain class.
match-class=<true/false> The player is guaranteed to meet the item class requirements.
Clone repository

  • Home
  • Installation Guide
  • Commands

General

  • Item Types
  • Item Stats & Options
  • Item Creation

Features

  • Mitigation
  • Elemental Damage
  • Item Identification
  • Item Tiers
  • Gem Stones
  • Custom Durability
  • Item Sets
  • Item Upgrading
  • Soulbound

Crafting Stations

  • Crafting Stations
  • Upgrading Recipes
  • Recipe Conditions
  • Recipe Ingredients
  • Recipe Triggers

Custom Blocks

  • Custom Blocks
  • World Gen Templates

Item Management

  • Item Updater
  • Item Drop Tables

Item Generator

  • General
  • Item Templates
  • Item Modifiers
  • Complex Stats
  • Obtaining a random item

Abilities

  • Abilities
  • Ability List

Compatibility & API

  • Supported Plugins
  • Custom Item Textures
  • Main API Features
  • Stat API