Implement a delay when breaking blocks, depending on their hardness

Started by Playershut on

Topic category: Help with modding (Java Edition)

Last seen on 19:05, 6. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Implement a delay when breaking blocks, depending on their hardness

Hello. I'm working on a mod that has an item that's supposed to break a block when you right-click. Of course, this should not happen instantly. After spending 2 days looking to implement the delay and trying about 10 ways, I settled on NBT block tags to implement different durability for different blocks.

Simply put, I don't know how to implement a delay when blocks break, depending on their hardness.

Thanks in advance

My procedure:
https://www.flickr.com/photos/195734257@N05/52110905607/in/dateposted-p…