TreeAssist icon indicating copy to clipboard operation
TreeAssist copied to clipboard

Tool is no required tool

Open TBG-FR opened this issue 2 years ago • 1 comments

Another small bug(s) I may have found

Tool with 2 enchantments

When holding a tool with 2 enchantments (for example, a sword with sweeping_edge and fire_aspect in hand and using /treeassist addtool, only one enchantment is added (as expected), but not the one displayed in the first message ("You can only use one enchantment") image

Tool with enchantment

When holding a tool with one (or many) enchantments, and using /treeassist addtool, a line is created in the config with that tool, but it doesn't work on Trees (and the /treeassist removetool command doesn't work)

I gave myself 3 swords, one with 2 enchants (like above), one with fire_aspect, one with sweeping_edge, and tried many times the addtool command. The following lines has been created in config (but I can't break a tree or removetool) :

- WOODEN_SWORD:minecraft:fire_aspect:1
- WOODEN_SWORD:minecraft:fire_aspect:1
- WOODEN_SWORD:minecraft:sweeping:1
- WOODEN_SWORD:minecraft:fire_aspect:1

Existing tool (with no enchant)

I didn't modified the config much, hence I can chop tree using all axes. If I do /treeassist addtool on a Wooden Axe, I get "You have already added this as required tool", and if I do /treeassist removetool I get "Tool is no required tool!" (Same thing with an enchanted axe tho)

TBG-FR avatar May 09 '22 13:05 TBG-FR

I think there might be a double check in place that the item (in your case, the sword) also has to be in the "general tools" area, so in the default config, add the wooden sword to the List "ToolList", hence it tells you "this is not a valid tool" --- well it tells you it is not a valid PROTECTION tool, but it is not a tool in the first place. axes and hoes are tools, by default :)

slipcor avatar May 09 '22 16:05 slipcor