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
  • #327

Closed
Open
Created Feb 14, 2021 by AnkhAsmodeus@AnkhAsmodeus

BonusLuckItems option in drop tables never works

Summary

When you try to use "BonusLuckItems" option in your drop tables it doesn't work in any way, the drops from the table are dropped but the bonusluckitems never works so you only get the items specified with TotalItems, MinItems or MaxItems even if you are using luck potion effect or luck based enchantments like looting or fortune, also doesn't matter if you are trying to drop vanilla items, mmoitems or commands, standalone or combined, this option seems to be useless and it never get trigger.

Steps to reproduce

SERVER: Paper Spigot 1.16.4 git-Paper-344

PLUGIN: MythicMobs-4.11.0-BETA (this problem exists from several previous versions)

Server Log File: https://pastebin.com/ueYuP1wH

Drop Table File: https://pastebin.com/1as6vqB3

Mob File: https://pastebin.com/RijSeX2y

The following examples are some of the combination i tried without any success until this moment always testing them with luck potion effect or looting enchantment or both at the same time, also tried with vanilla drops, mmoitems drops and command drops.

standalone options (MinItems,MaxItems or TotalItems):

MechBoss1:
  TotalItems: 5
  BonusLuckItems: 2
  Drops:
  - APPLE 1 0.5

MechBoss1:
  MinItems: 5
  BonusLuckItems: 2
  Drops:
  - APPLE 1 0.5

MechBoss1:
  MaxItems: 5
  BonusLuckItems: 2
  Drops:
  - APPLE 1 0.5

Combined (MinItems and MaxItems + BonusLuckItems):

MechBoss1:
  MinItems: 2
  MaxItems: 5
  BonusLuckItems: 2
  Drops:
  - APPLE 1 0.5

also doesn't matter if you use single amount or ranges.

MechBoss1:
  MinItems: 2
  MaxItems: 5
  BonusLuckItems: 1to4
  Drops:
  - APPLE 1 0.5

Inclusive i try using the example from the wiki "LuckyDroptable" but BonusLuckItems don't work never.

Current behavior

I can't get bonus luck items never when killing a mob with looting or luck potion effect, they only drop me the base amount or the base amount + BonusLevelItems but BonusLuckItems is completely ignored.

Intended correct behavior

Get bonus luck items when killing a mob with looting or luck potion effect.

Proposed fixes

I think it may be a problem in how the plugin detects the player's luck stat, maybe it doesn't detect your luck stat when killing a mob, there is a bug when trying to trigger the execution of BonusLuckItems or directly it's a problem with BonusLuckItems function.

Edited Feb 14, 2021 by AnkhAsmodeus
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking