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
  • Custom Durability

Last edited by Indyuce Feb 22, 2020
Page history

Custom Durability

Custom durability is a really powerful system that allows you to create items with a set amount of uses unlike the vanilla durability system which forces you to always have the same amount of uses for a type of item, unless you use the Unbreaking enchant which may just look unclean.
All items can have a Max Durability stat, which defines how many times the item can be used before either breaking or becoming unusable. The Lost when Broken item option defines whether or not the item will be lost when it reaches 0 durability.

Durability is displayed on the item vanilla durability bar, however you may also display the player's held item durability using PAPI placeholders. Items can be repaired at the anvil or using repairing consumables.

Since the custom durability system mimics the vanilla durability, there is no longer a way to have a custom textured item with durability in 1.13 or earlier. 1.14 introduces a CustomModelData tab which can be used to apply a custom texture whatever durability the item has, however since the newest MMOItems durability system overrides the vanilla one, it is no longer possible to have these two options in 1.13, which is the main reason why we would advise 1.13 users to update to 1.14 or 1.15.

Durability Placeholders

  • %mmoitems_durability% returns the amount of uses left of the item the player is holding.
  • %mmoitems_durability_max% returns the item max durability.
  • %mmoitems_durability_ratio% returns the item's durability ratio (from 0% to 100%).
  • %mmoitems_durability_bar_square% returns the item durability as a progress bar.
  • %mmoitems_durability_bar_diamond% returns the durability bar, but the char used is a diamond.
  • %mmoitems_durability_bar_thin% returns a much thiner durability bar.
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
  • Recipe Options

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