1.12 Legacy Content - TheMarstonConnell/randomlootmod GitHub Wiki
Case Ripper
This block can be right clicked with any random case and it will immediately open it.
The block has one slot in its' inventory and will simply replace the case with a random item so to automate this machine you will need some sort of redstone timer (it couldn't be too op!). (Yes this means it works with hoppers and probably other pipes too...)