So I was trying to create a custom furnace in 1.12.2, but whenever I tried to open the furnace, the game would crash. And then I tried to find out why, and apparently the code is outdated, and instead of using IInventory, I should use capabilities but I don't really know what it is and how to use it.