Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

ANY_PICKAXE and recognizing Enchantement #291

Open Qcbob opened 11 years ago

Qcbob commented 11 years ago

Hi,

I have been testing some custom drops for ores and I realized it was'nt affected by enchanted tool. In my test, I have focus on the enchant: LOOT_BONUS_BLOCKS (Fortune). If I write them indidivually everything work like a charm, but I tried to keep the code as compact as possible. The major issue I have right now is it does'nt recognize: ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1.

My first example is: 16:

stvncao5 commented 11 years ago

I think - as of now - the plugin can't read enchantments in conjunction with "group-aliases", because the alias "ANY_PICKAXE" is not an actual item itself, but rather, a group. I may have recalled Zarius wanting to add in this functionality quite awhile ago, but it's obvious this kind of feature is not coming any time soon.

For now, you'll have to resort to the longhand method of doing this.

Qcbob commented 11 years ago

Thanks for the reply. I have manage to bypass this problem adding aliases as tool to avoid writing them individually. It is a little bit long at the begining since I have to do it for every type of enchant, but once it is done a simple aliase solve all this kind of problem.

aliases:

otherdrops: 16: