#Custom Screen

14 messages · Page 1 of 1 (latest)

half flower
#

PlayerWidget: https://gist.github.com/AvocadoVR/26c049ee45a9a59ab2bd2a625ba20ebc
ScoreboardUI: https://gist.github.com/AvocadoVR/80361e4eafa5ce3913dbd91af03903e3

Currently, Its not drawing the PlayerSkin for each player. I got it to work but maybe its because of how its getting the players. Also, how can you detect

I was thinking since its suppose to show all the players regardless offline or online to use the playerdata folder to get their uuid and retrieve the data.

Client Vs Server

So, like LAN Or Essential Server and Dediciated Server since this mod is made for multiplayer purposes It has to run on a server of some type.

Gist

GitHub Gist: instantly share code, notes, and snippets.

Gist

GitHub Gist: instantly share code, notes, and snippets.

mystic flint
mystic flint
#

An essential server I suspect would be LAN (with some trickery to forward all the packets)

half flower
mystic flint
#

Singleplayer is just a server running on your computer. There's two threads, client and server. If world.isClient, you're on the client thread. Otherwise, you're on the server thread.

#

The best way to treat it is as if the client and server are totally separate. With a dedicated server, they are. With a singleplayer (or lan) server, they mostly are.

#

Either way, if you treat it like they're always separate, it'll work

#

Don't use the server entrypoint unless it's specifically for dedicated servers and NOT anything else

half flower
#

Also, would you know about retrieving player data from the world to get their UUIDs

mystic flint
half flower
mystic flint
#

I'm on mobile, so I can't really look at code much right now. I know some skins are cached somewhere, and I know that there are functions to get skins from the Mojang servers, but I don't know much more than that.