AnimalsDropMeat v1.6

Details

  • Filename
    AnimalsDropMeat.jar
  • Uploaded by
  • Uploaded
    Dec 30, 2013
  • Size
    104.97 KB
  • Downloads
    5,924
  • MD5
    43a2715f8194f9ef2dc2a8d9b534c481

Supported Bukkit Versions

  • CB 1.7.9-R0.2
  • 1.7.2
  • 1.6.4

Changelog

v1.6 - [meat-types]

  • Added ability to change meat-type in the config.
    - The valid types are "pork", "beef", "fish", "chicken".
    - Cooked / Raw meat type can be changed separately, but not recommended, because:
    ...If the cooked and raw type doesn't match you can only smelt/cook one at a time!
    ...(This is probably not fixable, because although it is possible to add custom furnace recipes
    ...you can't have multiple recipes for the same raw material.)
    - Added a warning message when cooked and raw meat type doesn't match.
  • Added meat-drops to Villagers (drops "Long Pork" / "Grilled Long Pork").
  • Updated PluginUpdater to v1.3 (from v1.2.1).

v1.5 - [correct smelting]

  • Added the correct cooking (smelting) for the new meats (forgot to add it in v1.4 -_-)
  • Added a warning message if an animal is configured to drop vanilla raw meat but custom cooked meat.
    - Because if it drops vanilla raw meat it will of course become vanilla cooked meat too!

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.

None