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
  • Item Types

Item Types · Changes

Page history
Updated Item Types (markdown) authored Jun 18, 2019 by Indyuce's avatar Indyuce
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 3 deletions
+4 -3
  • Item-Types.md Item-Types.md +4 -3
  • No files found.
Item-Types.md
View page @ 0718eaf5
...@@ -46,16 +46,17 @@ Range weapons have different item passives depending on their item types. ...@@ -46,16 +46,17 @@ Range weapons have different item passives depending on their item types.
## How to create new item types? ## How to create new item types?
You can add new item types to MMOItems using the item-types config file. You can add new item types to MMOItems using the item-types config file.
![](https://i.imgur.com/lmldV7I.png)
Creating an item type is pretty straight forward. You will have to specify four things: the type ID, which is only used as a reference in the /mi <type> <item> or similar commands, the type name, display item (the display which is displayed in /mi browse as well as in the advanced recipe list and the type parent. Creating an item type is pretty straight forward. You will have to specify 4 parameters: the **type ID**, which is only used as a reference in the /mi <type> <item> or similar commands, the **type name**, **display item** (the display which is displayed in /mi browse as well as in the advanced recipe list and the **type parent**.
You need to use the following format: You need to use the following format:
Code (Text): ```
LONG_SWORD: LONG_SWORD:
display: IRON_SWORD:0 display: IRON_SWORD:0
name: 'Long Sword' name: 'Long Sword'
parent: 'SWORD' parent: 'SWORD'
```
For instance, this adds an item type called Long Sword which behaves exactly like the SWORD item type. The type parent defines how the item type will behave. When set to 'GEM_STONE', the type will behave exactly like a gem stone and you will be able to give your item any gem stone stat. The type name is the name displayed in /mi browse, in the recipe list or on the item lore. For instance, this adds an item type called Long Sword which behaves exactly like the SWORD item type. The type parent defines how the item type will behave. When set to 'GEM_STONE', the type will behave exactly like a gem stone and you will be able to give your item any gem stone stat. The type name is the name displayed in /mi browse, in the recipe list or on the item lore.
You can add as many new item types as you want. Do not forget to use /mi reload after adding new item types, this way the config files corresponding to your item type (located in /MMOItems/item/) are generated. If your item type was successfully registered in MMOItems, you should be able to find it in the command auto tab completions. You can add as many new item types as you want. Do not forget to use /mi reload after adding new item types, this way the config files corresponding to your item type (located in /MMOItems/item/) are generated. If your item type was successfully registered in MMOItems, you should be able to find it in the command auto tab completions.
\ No newline at end of file
Clone repository

Item Info

  • Item Types
  • Item Stats & Options
  • Item Creation

Features

  • Elemental Damage
  • Item Identification
  • Item Deconstruction
  • Gem Stones
  • Custom Durability
  • Item Sets

Ability List (incomplete)

  • Page 1
  • Page 2
  • Page 3

Compatibility & API

  • Supported plugins
  • "Texture by durability"
  • Plugin API

Other

  • Installation Guide