This one's big. I've been toying around with various methods and commands but for the life of me I can't figure it out. I want to make something like a water rock (the one that fills up when it rains, not the spring), which generates resources and has a different model whether empty or full. I can figure out how to stock it, change the model, and all that.
What I can't figure out is how to make it so that when you USE the object, the item is added to your inventory.
For example, if I have a rock which generates slime, for example, I want to be able to press USE on the rock and have the slime added to my inventory, just as if slime had been lying on the ground and I had pressed USE on that. I don't want to open an exchange window or anything like that.
I've gotten close. I've even made it so the slime appears on the ground exactly where the rock is, but I can't figure out any more.
How can I have using an object translate into picking up an item?