There is a very simple animation I need done for a custom model I'm working on. It will function almost identically to that of a chest - one part of the model will rotate upward when the player right clicks it, then drop down when they exit the menu. The model I have is complete except for the animation, but how would I go about animating this as a Tile Entity? Would I save it differently? Then where should I save it to? I'm assuming it will be different than a simple .json file.
On a side note, I made the model in Blockbench but I also need to know how I should go about animating it. Is there a certain software I can use that will save it the way it is suppose to be? Essentially I just need this model to function the way a chest functions. I've searched around but haven't found any similar threads to this. If anyone knows, the help will be greatly appreciated! Or if it's already been solved a link to said thread would also be wonderful.
Thank you for the response! The video helps with giving it an inventory, but my model is already functional in that sense. Unfortunately right now I'm trying to figure out how to make the model's lid flip open when a player right clicks it. As in the physical animation of the lid flipping up. It isn't the same part of the block that rotates on chests either, it's a custom model and has a different piece I'm trying rotate. If there's any answers to this I'm still needing the help- appreciate any feedback.