Implement a delay when breaking blocks, depending on their hardness

Started by Playershut on Tue, 05/31/2022 - 09:55

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Implement a delay when breaking blocks, depending on their hardness
Tue, 05/31/2022 - 09:55

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…