Tropicraft

Tropicraft

12M Downloads

Tetra pickaxes don't damage head entities (green jumpy stones)

moonfather1 opened this issue ยท 0 comments

commented

Describe the bug
i use tetra (mod for making tools). it's pickaxes don't damage jumpy heads. also hammers and excavator-picks.

Expected behavior
they are pickaxes so...

Versions

  • Tropicraft Version [e.g. 9.6.3]
  • Minecraft Version [e.g. 1.20.1]

details

if (!heldItem.isEmpty() && heldItem.getItem() instanceof PickaxeItem pickaxe && isValidPickaxeTier(pickaxe.getTier())) {

existing check for PickaxeItem should be replaced by checking whether a tool can perform an action (call canPerformAction).
alternatively you can do something like isCorrectToolForDrops(Blocks.IRON_ORE.defaultBlockState()) but former is the proper way.