Description:
When loading a singleplayer world the load function from a datapacks is executed without the player.
How to reproduce:
1. create a world
2. leave world
3. add datapack that tests if a player exists on load (example in attachments)
4. join world
5. look into the logs
Expected:
The datapack finds the player
Reality:
The datapack doesn't find the player
Additional note:
The first ticks are also executed before the player is in the world
Attachments
Comments 2
Thank you for your report!
We're tracking this issue as MC-145442, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate of MC-145442, the world needs to be loaded in before the player can connect (singleplayer is a 1-man local server).