Jump to content

[1.8] Need clarification on the seperation of client and server


Guest

Recommended Posts

Is it possible for a clientside mod to read chunk NBT data, or is the data only accessible from the server? Is the chunk data on the client synced with the server chunk data? Does the client even know about the chunk data?

 

This goes for most other things, as well. How do I know what code the client has access to? Is it true that if there isn't a world.isRemote check, the client has full access to reading game logic code that you would expect to be on the server?

Link to comment
Share on other sites

Since Minecraft's big bandwidth hog is the transfer of chunks from server to client, I am confident that chunk data exists on the client (at least within viewing range, once it has loaded). I think it was the presence of all that data that made xray cheat mods possible.

 

The server does update chunk data, though I suppose some are updated more frequently than others. One way to see an update is to measure the lag between when you mine a block on your client and when you see its drops appear -- there's a round-trip communication with the server in between. If you have ever lost a connection, you may have had the experience of mining blocks and blocks without any drops appearing.

 

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

Basically - what client sees, client has.

Note that some of TileEntities are not always synchronized to client (their data). Some other stuff too.

 

How do I know what code the client has access to? Is it true that if there isn't a world.isRemote check, the client has full access to reading game logic code that you would expect to be on the server?

 

http://www.minecraftforge.net/forum/index.php/topic,33918.msg178740.html#msg178740

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.