Fabric API

Fabric API

106M Downloads

FabricBlockSettings#breakByTool(Tag, int) allows lower mining levels than specified

nnym opened this issue ยท 5 comments

commented

The method specified in the title does not prevent the blocks whereto the settings are applied from being broken with pickaxes of lower mining levels than the value passed to the said method. So far, I tried this only with FabricToolTags#PICKAXES, but I suspect that it should not make a difference for the other Tags.

commented

It also allows other tools if using FabricToolTags#SHOVELS, not sure about axes

commented

still not working on the latest API version 0.19.0+build.398-1.16 despite being mentioned as fixed.

FabricBlockSettings#breakByHand doesn't seem to work either.

commented

still not working on the latest API version 0.19.0+build.398-1.16 despite being mentioned as fixed.

FabricBlockSettings#breakByHand doesn't seem to work either.

Adding .requiresTool() SEEMS to fix it, might require further testing.

commented

it's mentioned in the javadoc,

commented

If requiresTool fixes this I will close the issue. If that does not solve the issue please let me know and I will reopen the issue.