Jump to content

Recommended Posts

Posted

How to add a world to MinecraftServer.getServer().worldServers and make it send packets to client

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

What would you think is the most practical way to give an entity its own world and have the server send packets to the entities world on client.

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

Im trying to enable each player being in multiple worlds to receive packets from all of them

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

Not Important but basically I have a modified world class that is very tiny(4 chunks). The idea is that a player can quickly have a pocket world as an item that when used they are quickly moved into their own world by simply overriding the game renderer and changing the player position. Im doing something like if(client){world = new world}else{world = new worldServer}. How would I theoretically link up theses 2 worlds?

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

the "world" you are talking about would be a dimension on the server.

 

if you are only giving 4 chunks to your "world" you could just make a single dimension and have that dimension generate a bunch of seperate 4chunk areas and each user gets a way to teleport to a specific one of those areas.

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Posted

ok, now how would I get the client to receive updates on those regions even if theyre not there (this is critical)

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

I think you might have a misunderstand of what the client does.

 

Is the held item the only way in/out of that dimension?

What is the purpose of this dimension?(is it somewhere to put like a personal chest room or power generators?

 

If you have those chunks be permanently loaded once assigned to a player, I can not think of a use case where you would need to send information specifically to the user.

 

However if you do NEED to, you can use regular packet handling and send your information to the player, the player is a parameter.

 

this tutorial should help if you don't know how to send packets yet:

http://www.minecraftforge.net/forum/index.php/topic,20135.0.html

Current Project: Armerger 

Planned mods: Light Drafter  | Ore Swords

Looking for help getting a mod off the ground? Coding  | Textures

Posted

I know that, Im just trying to use vanilla packets. Theres something in the world called worldAccesses and I think those handle sending packets. Do I just add a worldAccess to that list and Im done?

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

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.