mung3r / ecoCreature

PvM/E Rewards
http://forums.bukkit.org/threads/29538
GNU Lesser General Public License v3.0
7 stars 12 forks source link

Individual OverrideDrop for each mob. #151

Open erik1988 opened 9 years ago

erik1988 commented 9 years ago

Would it be possible to only override/clear drops of certain mobs? I would like to be able to add "OverrideDrops: true/false" under each mob so that I get more controll. The reason is that I would like to limit the amount of meat droped by animals, however i dont want to clear the armor/swords that the zombies picks up.

# Replace instead of stack rewards drops/items
# Default: true
OverrideDrops: true

RewardTable: Cow: Drops:

mung3r commented 9 years ago

Yup, this is supported. Here's an example:

RewardTable:
  Cow:
    Drops:
    Drops:
    - 'leather:2:100'
    - 'raw beef:1-3:100'
    Hunting:
      OverrideDrops: true

In fact, you can override anything in the global 'Hunting' section on a per mob basis.

erik1988 commented 9 years ago

Oh really? Thanks :)

erik1988 commented 9 years ago

It does not work. I tried it with the guardians and they still dont drop anything. I also tried it with the zombies to try to make them drop the armor but they dont. my config is like this: http://pastebin.com/L0rSA81K

If im in creative everything drop as normal minecraft ofc, since im ignored, but in survial it dos not work. It seems to always be clearing the deafult drop no matter what.

mung3r commented 9 years ago

It looks like some of the flags in the hunting section are not available. I will have to change that.