ANY_PICKAXE and recognizing Enchantement
Qcbob opened this issue ยท 2 comments
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:
- tool: ANY_PICKAXE
drop: {cobblestone, coal/1/50%}
What I want to include is another possible drop for any level of Fortune Enchantment
- tool: ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1
drop: iron_block/0-1
- tool: ANY_PICKAXE@!LOOT_BONUS_BLOCKS#2
drop: gold_block/0-1
- tool: ANY_PICKAXE@!LOOT_BONUS_BLOCKS#3
drop: diamond_block/0-1
If I try:
- tool: DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1
drop: iron_block/0-1
...
It recognize the tool with the enchant, but if I place ANY_PICKAXE it recognize the tool when I do /od reload, but it does'nt actually do the proper drops. Am I doing something wrong, or is it simply that ANY_PICKAXE@!LOOT_BONUS_BLOCKS is not a proper syntax?
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:
- &FORTUNEI [DIAMOND_PICKAXE@!LOOT_BONUS_BLOCKS#1, GOLD_PICKAXE@!LOOT_BONUS_BLOCKS#1, IRON_PICKAXE@!LOOT_BONUS_BLOCKS#1,
WOOD_PICKAXE@!LOOT_BONUS_BLOCKS#1]
otherdrops:
16:
- tool: ANY_PICKAXE@!LOOT_BONUS_BLOCKS#1
drop: iron_block/0-1
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.