Huge number of items in the end, are causing my client to disconnect when I log on to the realm.
My current plan is to keep logging on to the realm manually, and hope the game clock advances enough each time, that eventually all the items despawn. I see no other possible solution.
Longer Explanation on how the situation came about:
I have a realm.
In the realm, I have been pushing items into End Portals in my overworld, to transport them more efficiently to spawn.
I have been playing one of my kid's accounts on the realm, on the overworld.
I was keeping end chunks loaded (and thus items being processed) by having my personal account (the owner) AFK in the end.
Unfortunately, the end AFK account disconnected, and now when I log on with my owner account, Realms hangs. When I log in with any user account, I can play fine, as long as I don't go to the end. If I go to the end, the game hangs, and eventually disconnects.
I am inferring from this, that there are a large number of items in the end, causing the game to lag so massively that all network connections timeout.
My account that can execute commands is in the end, so every time I connect, I disconnect without being able to open a command window.
I tried the "log in a bunch of times, to advance the game clock" strategy, but it's pretty clear that the game is 'resetting' to the last saved time. It is not moving the clock forward. I'm thinking the game is crashing or hanging.
I tried @Corsaka's idea, at spawn, I set up a command block on a 6 tick timer that executes the command:
I tested this on a single player world, and it worked as expected (if I go to the end, items at the end are deleted by the command.)
When I do the same at the realm, the realm just crashes/timesout/resets itself back to a previous saved game state.
Current plan is to download Realm to local machine, and work on it there. That seems the best solution at this point. Interested in other options.