Change block durability

Discussion in 'Plugin Development' started by era3037, Jul 28, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    era3037

    hi, so I'm building a plugin that will make bedrock breakable and I have been struggling to find a method in which I am able to change the durability of a block. I found a way to replace the block with air when someone hits it but that feels un-natural. Would there be a way in which I can give bedrock the same durability as obsidian or something similar? Thanks!
     
  2. Offline

    KarimAKL

    @era3037 According to this post, the Block class in NMS should have a protected field called strength.
     
Thread Status:
Not open for further replies.

Share This Page