Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

 

ლ(́◉◞౪◟◉‵ლ

  • Author

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

 

ლ(́◉◞౪◟◉‵ლ

  • Author

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

 

ლ(́◉◞౪◟◉‵ლ

  • Author

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

 

ლ(́◉◞౪◟◉‵ლ

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

  • Author

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

 

ლ(́◉◞౪◟◉‵ლ

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

  • Author

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.