CraftBook 3

CraftBook 3

139k Downloads

Metadata Values Inaccurate for Custom Mob Drops

LadyCailinBot opened this issue ยท 7 comments

commented

CRAFTBOOK-3094 - Reported by Islid

When creating custom drops to use with Craftbook, items assigned to drop from mobs randomly appear to have erroneous metadata values assigned to them.

For example, with the following config file custom drop entry:

Bat:
entity-type: "BAT"
drops:
Bone:
item: "352"
chance: 15
minimum-amount: 1
maximum-amount: 3
Leather:
item: "334"
chance: 5
minimum-amount: 1
maximum-amount: 3
type: entity
append: false

Drops will randomly appear that have ID values of 352:-1 and 334:-1. It doesn't appear to correspond to any particular time of day, length of time the server has been up, there is no error in console about it, no particular method of fighting (weapon, biome, etc.) causes the bug consistently, and no other variables seem to have an effect. The items with negative metadata values don't stack properly and aren't sellable with our shop plugin, meaning that most of the time they need to be exchanged manually by a mod to fix it.

commented

Comment by Islid

Craftbook Report: http://pastebin.com/ynv4c2aZ

commented

Comment by Islid

Mob Drops Config File: http://pastebin.com/aQ95U2RH

commented

Comment by me4502

Try setting them to 334:0, etc, so that they are forced to have the data of 0.

This could be a side effect of the partial removal of ids and data in 1.8

commented

Comment by Islid

Alright, going to do this. I'll report back in a day or so and let you know what I've found. :)

commented

Comment by Islid

Oh, dang, didn't even have to wait that long - I set up the config file like you suggested and tested it myself a few times, immediately got an item with broken metadata again, one with a -1 value.

commented

Comment by Islid

I haven't heard any new updates on this - is this resolved in the newest dev build, or do you need more information? I'd be happy to test and provide config/log files if needed.

commented

Metadata doesn't exist anymore so closing