


The physical client is the minecraft jar downloaded by the vanilla launcher. This technique is necessary to avoid desynchronization between the two logical sides. This can be used to perform authoritative actions on the server such as spawning entities, and to simulate actions on the client. Usually, to distinguish objects on the logical clients from the ones on the logical server you would access the world of the object and check its isClient field. The client can interact with these objects while the server is responsible for keeping them in sync. These replicated objects allow clients and servers to perform some common game logic. The client maintains a partial replica of the server's world, with copies of objects such as: The server handles the core game logic, data packs, and maintains the true state of the game world. The logical client does rendering, sends player inputs to the server, handles resource packs, and partially simulates the game world. The logical sides are responsible for the actual game logic. Therefore, an understanding of logical sides is vital for any mod development with Fabric. The logical sides are central in the architecture of both distributions of Minecraft. A logical client is instead hosted by a physical client, and a logical server is hosted by either a physical server or a physical client. However, a logical client is not equivalent to a physical client, and a logical server is not equivalent to a physical server either. Therefore, client/server may also be used to distinguish parts of the game logic which are called “logical” sides.įor both types of sides, there is a 'client' and a 'server'. However, a Minecraft client hosts its own integrated server for singleplayer and LAN sessions, which means that a Minecraft client also contains server logic.

a dedicated Minecraft server) which are called “physical” sides.

The terms client/server may be used to distinguish the different distributions of Minecraft (the Minecraft client vs. The concept of client/server in Minecraft is ambiguous and may refer to either physical or logical sides. Fabric allows mods to target either the Minecraft client or the Minecraft server, but also both at the same time. Minecraft uses the Client-server model, that is users install the game client and connect to a server to play the game.
