Posted December 5, 20232 yr Hi, i try get block hardness. In old versions works this code: blockState.getBlockHardness(world, currentPos) But now in 1.20.1 this function cutting.
May 17, 20241 yr I know this is an old post, but incase anyone comes looking for the answer, you now have to use: getBlock().defaultDestroyTime()
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.