How do mods actually interact with the client?

User avatar
Posts: 10
Joined: Sat May 23, 2015 15:06
GitHub: 2mac
IRC: Zerock
In-game: Zerock

How do mods actually interact with the client?

by Zerock » Thu Jan 07, 2016 04:15

Suppose I write a mod and someone hosts it on a server. If I connect to this server, what are the possible data that might be transmitted to my client? Is it just some object definitions, or is actual software sent to my client? If software is sent, how much does it resemble the software installed on the server?

Posts: 816
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: How do mods actually interact with the client?

by Byakuren » Thu Jan 07, 2016 05:37

No code is sent, it'll send the parts of nodes and entities and things that are important for the client to display and predict things, and also GUIs. For example, changes in entity velocity/acceleration are sent to the client, so that the client can predict the position of them. The client also sends events to the server like tool use and formspec button clicks, but all the mod code runs on the server.
Every time a mod API is left undocumented, a koala dies.

Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 2 guests