AnimalsDropMeat v1.8

Details

  • Filename
    AnimalsDropMeat.jar
  • Uploaded by
  • Uploaded
    Jul 6, 2014
  • Size
    159.39 KB
  • Downloads
    40,024
  • MD5
    dfcf1536a3fbf0d9beb74bdc86b4d3d3

Supported Bukkit Versions

  • CB 1.7.9-R0.2
  • 1.7.2
  • 1.6.4

Changelog

v1.8 - [Giants & Dragons]

  • Added meat-drops to Giants ("Raw Giants Meat" [rotten] --> [rotten] "Cooked Giants Meat")
    - default rates: 20% each for quantities 24, 26, 28, 30 and 32.
    - raw restores 4 hunger and 0.8 saturation (80% food poisoning)
    - cooked restores 6 hunger and 7.2 saturation.
  • Added meat-drop to the Ender Dragon ("Raw Dragon Meat" [beef] --> [beef] "Roasted Dragon Cutlet")
    - default rates: 30%:24, 20%:22&26, 10%:20&28, 5%:30, 4%:18, 1%:42.
    - restores 4 hunger and 9.6 saturation + golden / notch apple effects
  • Added optional cooking of vanilla Rotten_Flesh (enabled by default).
    - Deprecated "RottenCooking.CancelVanilla" - (config auto-updates to:)
    - Added "RottenCooking.VanillaCooking" - valid values: "yes", "no", "ignore"
    ..."yes": ADM handles cooking of vanilla Rotten_Flesh
    ..."no": same as "CancelVanilla: true" (however gets upgraded to "yes" by default)
    ..."ignore": same as "CancelVanilla: false"
    - Vanilla Rotten_Flesh cooking result can be configured under "Animals:Zombie"
    ...Rotten_Flesh --> [rotten] "Broiled Rotten Flesh"
    ...restores 3 hunger and 1.8 saturation.
  • Meat-type "salmon" added (not used by default).
  • Meat-type "clownfish" added. (requires "ClownfishCooking.Enabled")
  • Added optional cooking of vanilla Clownfish (enabled by default).
    - Added "ClownfishCooking.Enabled" - valid values: true , false
    - Vanilla Clownfish cooking can be configured under "Animals:Clownfish"
    ...Clownfish --> [clownfish] "Baked Clownfish"
    ...restores 3 hunger and 1.8 saturation.
  • Deprecated "ConsumptionSubstitution.RottenCooking.FurnaceUnStuck"
    - Moved to "ConsumptionSubstitution.FurnaceUnStuck.Enabled" (config auto-updates)
    ...since it is no longer tied to RottenCooking (it's also used by ClownfishCooking).
  • Added "Advanced.StackSplitSize" - valid value range: 1-64
    - Because it's no fun if the dragon/giants meat drops in a single big stack!
  • Optimized config loading code so it only saves the config if any changes where made.
  • Added check to prevent setting "rotten" as fallback to itself!
  • Added check to automatically disable 1.7.2+ features if running a pre-1.7.2 server!
    - Salmon and Clownfish gets automatically replaced with Fish during config loading.
    ...Thus ADM v1.8 retains compatibility with old Minecraft versions! :)
    - Config remains untouched! Only runtime values are affected!

v1.7 - [moar-meat!]

  • Meat-type "rotten" added (for using Rotten_Flesh in cooking).
    - Added a rotten fallback type in the config.
    ...If you disable rotten cooking in the config any "rotten" types will be replaced with this.
  • Added meat-drops to Witches ("Chewy Long Pork" [beef] --> [beef] "Cooked Long Pork")
    - default rates: 60% chance of quantity 1, 30% chance of quantity 2. (10% no drop)
  • Added meat-drops to Spiders ("Raw Spider Meat" [rotten] --> [rotten] "Crispy Spider Bits").
    - default rates: 50% chance of quantity 1, 50% chance of quantity 2.
    - (raw meat can give you food poisoning!)
  • Added meat-drops to Cave Spiders ("Raw Cave Spider Meat" [rotten] --> [rotten] "Crispy Spider Bits").
    - default rates: 85% chance of quantity 1, 15% chance of quantity 2.
    - (raw meat can give you poisoning!)
  • Added meat-drops to Bats ("Flayed Cave Bat" [chicken] --> [chicken] "Barbecued Cave Bat").
    - default rates: 100% chance to drop (quantity 1).
    - (raw meat can give you food poisoning!)
    - "The Oxford Companion to Food states that the flavor of fruit bats is similar to that of chicken."
  • Added meat-drops to Creepers ("Raw Creeper Leg" [chicken] --> [chicken] "Hot Smoked Creeper Leg").
    - default rates: 45% chance of quantity 1, 50% chance of quantity 2, 5% chance of quantity 3.
    - (raw meat can give you food poisoning!)
  • Added ConsumptionSubstitution!
    - Q: What??
    - A: When a consumable item is consumed by a player it can be replaced with a different item
    ... at the moment of consumption. (Bukkit supports this natively in the consumption events.)
    - Q: Why do that?
    - A: The effects of consumption (hunger/saturation restored and effects like food poisoning)
    ... are determined by item consumed. Thus by substituting the item consumed the effects can
    ... be changed in a very "clean" way. (No need to cancel the event).
    - Can be disabled in the config but is required for rotten cooking to work correctly!
    - Just like meat-types I will make the substitution types configurable in a future version.
  • New consumption effects with ConsumptionSubstitution enabled: [sub-type] (old/default)
    - Nerfs to make smaller animals more realistic and bring back proper value to bigger animals:
    ..."Dog Steak" now restores 6 hunger and 7.2 saturation, [Cooked_Chicken] (8h 12.8s)
    ..."Raw Cat Flesh" now restores 2 hunger and 1.2 saturation, [Melon] (3h 1.8s)
    ..."Cooked Cat Meat" now restores 5 hunger 6 saturation, [Cooked_Fish] (8h 12.8s)
    - New v1.7 meats:
    ..."Raw Spider Meat" restores 2h 1.2s with 30% food poisoning, [Raw_Chicken] (4h 0.8s 80%)
    ..."Raw Cave Spider Meat" restores 2h 1.2s with 60% poisoning, [Poisonous_Potato] (hp loss!)
    ..."Crispy Spider Bits" restores 4 hunger and 2.4 saturation, [Apple] (...not very satiating)
    ..."Barbecued Cave Bat" restores 5 hunger 6 saturation, [Cooked_Fish] (6h 7.2s)
    ..."Hot Smoked Creeper Leg" restores 4 hunger and 2.4 saturation, [Apple]
  • Changed default drop rates for Villagers (existing configs wont be affected)
    - Before (v1.6): 50% chance of quantity 1, 50% chance of quantity 2.
    - After (v1.7): 40% chance of quantity 1, 60% chance of quantity 2.
  • Small memory usage improvement: no longer stores the yaml config in memory after a successful load.
  • Improved Yaml loading/saving (now using YAMLLoader and YAMLVariableLoader from AZTB!)
    - https://github.com/AnorZaken/aztb
  • Updated PluginUpdater to v1.3.1 (from v1.3)

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.

* Consumption substitution has the drawback that you can't hold right mouse button to eat several food items from the same stack (you have to release right mouse button then hold it again to continue eating from the stack)
* If a furnace is burning, and a player puts in some rotten flesh or clownfish meat that can't be cooked (because it has already been cooked or because it's vanilla rotten flesh and vanilla rotten cooking is disabled) and picks up an itemstack on the cursor and, while holding this item on the cursor, waits for the fuel in the furnace to burn out, the itemstack on the cursor will turn invisible (client-side visual glitch).