i figured as much but eventually when I find time I'll try unmodded and see if it's still the case
Also, I'm not sure but if I remember correctly other foxes can pick up the item.
For some reason killing the fox fixes the issue.
Video will be here momentarily.
Also, I forgot to mention I'm also using JourneyMap.
Still an issue almost two years later.
I found this to happen to me when my world had previously been used for a dedicated server. Removing spaces fixed it for me as well.
Also, I have since cancelled my realms subscription as I figured out how to make a dedicated server myself, so I can't do any testing on realms right now.
Should I open a new issue since it turns out this seems to extend beyond foxes?
I don't recall my wolves losing trust like the foxes did. However yes, now that I think about it, whenever I move one of my worlds between a server or realms I seem to lose all of the items in my inventory (my friends do not lose theirs), so I always to put them in a chest or something before the move. When I lose my items, sometimes I also get a map (when I created the world I set the starting map setting to on). I'm not sure what's going on. Also, when I move a world from a dedicated server to my local worlds, I don't seem to lose my items, but when I open the world my character is in the state it was when I originally put the world on the server, as they have no items (because I had put my items in a chest before I put the world on the server). I am also in the same position as I was when I initially moved the world to the server.
TL;DR When I move a world between a server/realm and local worlds sometimes all foxes and other animals lose trust in all players, and sometimes I lose my items. So yes.
What I meant by the Pikmin mod was that it was on one of my worlds that had the problem. There were others without the Pikmin mod that still had the problem.
I also had a mod that added Pikmin into the game, and the pikmin's onions act like pets in that you can tell them to stay, follow, etc. The onions also lost trust (this is in a different world that does have cheats on, so I just summoned new onions and killed the old ones. Also, I have preserved a copy of the original world from when I first opened this issue (in the main version I have since resorted to killing the foxes and breeding new ones). In addition, in the world with said onions I also have a mod that makes foxes fully tameable. Those foxes also lost trust at the same time that the onions did.
I would prefer not to upload any worlds unless absolutely necessary as there is some form of personal information in most of them.
Yeah, I figured that would probably happen. Well, if I eventually get time to test it in unmodded then we'll see.