RPProfessions - Discontinued. Use the Free Version Instead icon

RPProfessions - Discontinued. Use the Free Version Instead -----

Create Immersive RP Professions Focused on Crafting



v1.4.0 | MMO Consumable Effects
New Feature

You can now create items giving MMO stats when consumed. Right now it only works with stats from plugins using MythicLib. This means you can create consumables (potions and food) giving stats like bonus health, critical strike chance, armor, etc...

The effect name should be the in-game name of the effect, in full caps with underscores ("_") between each word. (e.g: "CRITICAL_STRIKE_CHANCE" for "Critical strike chance").

The effects work for a given amount of time and can be saved when the player leaves the server. Effects can persist through death as well.

A new configuration file was created to let you add your (MMO) effects:

Code (YAML):
CRITICAL_STRIKE_CHANCE_POTION_I :
  # The MMO uid. A player can't have 2 effects with the same mmo-id. (can't stack I and II for a double buff).
  mmo-id
: CRITICAL_STRIKE_CHANCE_POTION
  # Duration of the effect in seconds
  duration
: 900
  # Whether the effects state should be saved when the player leaves the server. If set to false, the player looses the effects when leaving.
  save-on-quit
: true
  # The MMO effects
  mmo-stats
:
    CRITICAL_STRIKE_CHANCE
: 0.5
ELIXIR_OF_VITALITY_I
:
  mmo-id
: HEALTH_ELIXIR
  # 1 hour
  duration
: 3600
  # Dying doesn't clear the effects from the player
  persistent-through-death
: true
  save-on-quit
: true
  mmo-stats
:
    MAX_HEALTH
: 2
TOUGH_SKIN_POTION_I
:
  mmo-id
: ARMOR_POTION
  duration
: 900
  save-on-quit
: true
  mmo-stats
:
    ARMOR
: 0.25
    ARMOR_TOUGHNESS
: 0.5
CRITICAL_STRIKE_CHANCE_POTION_II
:
  mmo-id
: CRITICAL_STRIKE_CHANCE_POTION
  duration
: 900
  save-on-quit
: true
  mmo-stats
:
    CRITICAL_STRIKE_CHANCE
: 1.0
 

Simply add the 'effects' field to your consumable to link effects to it:

Code (YAML):
POTION_OF_PRECISION_I:
  mmo-item
: POTION_OF_PRECISION_I
  station
: BREWING_STAND
  category
: POTION
  # You can link as many effects as you want
  effects
:
 - CRITICAL_STRIKE_CHANCE_POTION_I
  dynamic
: true
  receptacle
:
    material
: POTION
    potion-type
: WATER
  reagent
: CARROT
  fuel
: WEAK_GREEN_COMPOUND
  level-gain
: 1
  level-cap
: 50
 

Since it's a completely new feature, please pay attention to any bug that may occur and make sure to report it in the issue tracker (linked on the main page).
----------, Oct 9, 2023
Resource Information
Author:
----------
Total Downloads: 32
First Release: Mar 3, 2023
Last Update: Feb 21, 2024
Category: ---------------
All-Time Rating:
6 ratings
Find more info at gilles1348.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings