I created this item for you.
A few notes...
- This item functions by having charges, but the item won't disappear upon running out of charges. Each charge represents a hit that can be blocked. You can adjust the maximum number of charges this item can hold in the object editor.
- You can actually hold multiple copies of this item, but it will still only consume 1 charge per block. The copies of the item at the top and to the left will take priority over those to the bottom and right. Of course, if an item is out of charges, it will consume charges from the other available item that's in the inventory.
- Rather than having the cooldown trigger after blocking two hits, a 60 second cooldown will immediately trigger after blocking one hit. After that cooldown ends, a charge will be restored. The wielder of this item can still block another attack if that item still has a charge. This will trigger a separate 60 second cooldown. An item can recharge both of its charges at the same time.
- I left the variables in GUI for you. This will allow you to easily adjust the damage threshold, the chance to block, and the cooldown of each individual charge
- You'll want to change the reference in the code from 'I000' to the item's object ID in your map.