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
  • Recipe Conditions

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

Recipe Conditions

Just like ingredients, conditions must be met in order to use a recipe. Unlike ingredients, conditions do not take anything from the player inventory when using a crafting recipe. There are several types of recipes conditions, the main being level conditions and permission conditions. Just like ingredients, conditions are stored in a list inside the recipe config section. ``` recipes: steel-sword: conditions: - 'level 5' - 'perms mmoitems.recipe.steel-sword mmoitems.recipe.station.steel' ```

Condition Usage Description
Min Lvl. level <min> Players must be Lvl X or higher.
Permission perm <perm1> <perm2>... Only players with specific perms may use the recipe.
Food food <amount> The recipes (requires and) consumes X food.
Mana mana <amount> The recipe (requires and) consumes X mana.
Stamina stamina <amount> The recipe (requires and) consumes X stamina.

The `hide-when-locked` recipe option only triggers when at least one of the conditions is/are not met. The recipe will still display in the GUI if the player does not have all the required ingredients. Recipe conditions display at the beginning of the GUI recipe item lore: https://i.imgur.com/xPwlm5B.png

Clone repository

Home

General

  • Item Types
  • Item Stats & Options
  • Item Creation

Features

  • Mitigation
  • Elemental Damage
  • Item Identification
  • Item Tiers
  • Gem Stones
  • Custom Durability
  • Item Sets
  • Item Drop Tables

Crafting Stations

  • Crafting Stations
  • Recipe Conditions
  • Recipe Ingredients

Item Management

  • Item Updater

Abilities

  • Ability List

Compatibility & API

  • Supported Plugins
  • Custom Item Textures
  • Plugin API

Other

  • Installation Guide