magemonkeystudio / divinity

GNU General Public License v3.0
11 stars 8 forks source link

[Bug]: Drops module only drops 1 item regardless of max drop amount #251

Closed goflishMC closed 4 months ago

goflishMC commented 4 months ago

Is there an existing issue for this?

Current Behavior

When using the command for drops, /drops give and /drops drop no matter what the max amount is, you still only get 1 of the item.

Example:

items:
  ironore:
    chance: 100.0
    module-id: 'custom_items'
    item-id: 'ironore'
    min-amount: 1
    max-amount: 3
    min-level: '1'
    max-level: '1'
    additional-conditions: []
    actions-on-drop: {}

That's my drop. I have max-amount set to 3, but I always get only 1 of this item when it's given or dropped.

Expected Behavior

I should get a random amount between 1-3 items each drop.

Steps To Reproduce

  1. Setup your drop
  2. Set the max amount to a higher number than 1
  3. Give yourself the item using /drops drop yourname dropname
  4. Only one item will be given each time instead of getting a random amount between your min and max quantities.

Environment

- Server Software: Paper 1.20.6
- Divinity Version: 1.0.0-R0.22
- Codex Version: 1.0.0-R0.21
- Plugins: https://i.imgur.com/14sTFLF.png

latest.log

No response

Anything else?

No response