AnimalsDropMeat v1.4

Details

  • Filename
    AnimalsDropMeat.jar
  • Uploaded by
  • Uploaded
    Nov 30, 2013
  • Size
    90.22 KB
  • Downloads
    2,227
  • MD5
    c717d92e9cf50341c170f4a1b5a551b5

Supported Bukkit Versions

  • CB 1.6.4-R2.0
  • CB 1.6.4-R1.0
  • CB 1.6.2-R1.0

Changelog

v1.4 - [custom meat]

  • Added the ability to change the names of dropped meat.
    - I.e. new item stacks! E.g. vanilla Beef dropped from a Cow will not stack with Horse Beef.
    - PS: Changing the names in the config will not update the names of meat already obtained by players.
    - Will warn on config load if the meat names is specified more than once for the same animal.
    - If no custom names are specified the plugins default custom names are used.
    ...Custom names must be >1 character long.
    ...Setting an empty (or single character) name will disable custom stacks = vanilla item stacks.
    ...PS: An empty string must have quotes!!! (i.e. NameRaw: "" or NameRaw: '' is OK)
  • The animal config deserialization will output an info message if it detects unrecognized data.
    - The unrecognized data will simply be ignored and is left untouched.
  • Now using more robust configurationFile loading/saving mechanism.
    - Failing to load/parse the config will no longer overwrite it with default values.
    ...(e.g. because of a typo causing incorrect YAML syntax.)

v1.3 - [kill it with fire!]

  • Animals that are killed while on fire will now drop cooked/grilled meat instead of raw meat.
    - PS: In vanilla minecraft one-shot killing an animal with a fire weapon will drop raw meat.
    ...It has to be on fire before it dies! My plugin behaves just the same.

v1.2 - [variable drop-rates]

  • Added ability to configure drop-rates, including rate likeliness of quantities.
    - Likeliness is relative to one another, it's not percentage.
    ...Percentage drop-rate of Quantity q equals likeliness_of_q / sum_of_likeliness_for_all_q.
    ...All zero rate = wont drop anything.
    ...Example: {qty:0, rate:2} + {qty:1, rate:3} + {qty:2, rate:1} would give:
    * zero drops 2 out of 5 times
    * one drops 3 out of 5 times
    * two drops 1 out of 5 times
    (because 2 + 3 + 1 = 5)
    - Will warn on config load if the same animal is found more than once in the config.
  • Added command to reload the config, "/animalsdm reload", and animalsdropmeat.reload permission to match.
  • Adjusted the drop-rates for babies to half of the drop quantity for adults rounded down.
    - E.g. adult qty1 -> baby qty0, adult qty2 -> baby qty1, adult qty3 -> baby qty1, etc.
  • Now using v1.2.1 of PluginUpdater.

v1.1 - [future proofing]

  • Replaced deprecated (magic value) Itemstack constructor with its enum-based counterpart.
    - Technical detail only - behaviour identical to v1.0
  • Added mcStats-lite to track usage.
  • Added PluginUpdater for auto-update support. (Preparation in case update needed for 1.7.2)
    - Added "/animalsdm check" and "/animalsdm download" to check for / download updates.
    - Requires new animalsdropmeat.update permission. (default: op)
    - "check" and "download" can be tab-completed - no need to spell out the whole word.
    - Secure implementation: wont reveal the existence of commands a player doesn't have permission to use.

v1.0 - [initial release]

  • Makes Wolfs and Horses drop 1 Raw Beef on death.
  • Makes Squids drop 1 Raw Fish on death.
  • Makes Ocelots and Sheep drop 1 Raw Pork on death.

Bug: Smelting (aka cooking the meat) will always result in vanilla meat. (Fixed in v1.5)