Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1872

Closed
Open
Created Mar 26, 2025 by Asqen69@Asqen69

Add **BonusChanceItems** Feature to DropTables with Placeholder Support

Summary

I propose adding a new option called BonusChanceItems to the DropTables configuration in the MythicMobs plugin. This option would allow for a global increase in the drop chance of all items within a given droptable, similar to the existing BonusLuckItems feature. Additionally, this option should support Placeholders to dynamically modify the bonus based on external factors like player stats, events, or special conditions.

Usage

ntroducing a new key BonusChanceItems in the DropTables configuration, which adds a specified percentage to the base drop chance of all items in that droptable.

It should support:

Static Values: Fixed percentage bonuses (e.g., 0.1 for a 10% bonus).

Placeholders: Dynamic values that can be modified based on player conditions or external plugins (e.g., %player_bonus_drop%).

internal_droptablename: 
  TotalItems: 3
  MinItems: 1
  MaxItems: 5
  BonusLuckItems: 1.2
  BonusChanceItems: "%player_bonus_drop%"  # Supports both static values (e.g., 0.1) and Placeholders

Value

Adding BonusChanceItems with placeholder support significantly increases the flexibility of the DropTables system and allows:

  • Easy implementation of global modifiers to drop chances.

  • Creating loot systems adjusted for events, difficulty levels, special effects, or player-specific bonuses.

  • Integration with other RPG mechanics and plugins that affect loot drops based on dynamic conditions.

  • Allowing server owners to personalize loot drops for players with special perks or abilities.

Priority

This suggestion has a medium-high priority because:

  • It provides both static and dynamic methods of modifying drop chances.

  • It greatly enhances the plugin's compatibility with other systems and plugins.

  • It offers new possibilities for customizing loot systems for specific players or game events.

  • It is backward-compatible and does not affect existing configurations unless intentionally added.

Implementation

Add a new key BonusChanceItems to the DropTables configuration and modify the drop chance calculation as follows:

BaseChance + (BaseChance * BonusChanceItems) = FinalChance

Examples (Combining Static Value and Placeholder Examples):

  • BaseChance = 50%
  • Static Value Example:
  • BonusChanceItems = 0.1 (which means a 10% bonus)
FinalChance = 50% + (50% * 0.1)
FinalChance = 50% + 5%
FinalChance = 55%

Placeholder Example:

  • BonusChanceItems = %player_bonus_drop% (assuming %player_bonus_drop% returns 0.2, which means a 20% bonus)
FinalChance = 50% + (50% * 0.2)
FinalChance = 50% + 10%
FinalChance = 60%
Edited Mar 29, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking