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

Is it possible to do this? I tries and it seems to not update the server's data watcher...

  • Author

Exactly, that's what I'm trying to do. Unfortunately I haven't been able to get my head around other kinds of packets (especially getting the data to a specific entity serverside) so I was hoping this would work. Any tutorials/ want to give me a run down of what to do. I have read your tutorial on the subject, but I had trouble.

  • Author

I have the player riding an entity and while WASD+Space are pressed, do different things to variables in a third entity (depending on the combination). Basically just a controllable entity, but the entity controlled is not the one ridden.

  • Author

Looking at some of my old packet code I think I might actually be able to get it working. Mostly I was hoping there was an easier way.

  • Author

Are UUIDs the same client and server side? I am trying to check if the player is riding the seat, but I can't get the entity variable.

iff you are sending packets to the server for control and thats where you need the entity in your message handler you can get the plater that sent the packet using.

messageContext.getServerHandler().playerEntity

I am the author of Draconic Evolution

  • Author

Well I did get it working, but the bandwidth use isn't optimal. Basically, any client that is sitting in a seat (instanceof ...) sends data to the server, but only ones in specific seats are needed. The entity that sends the data knows which seats serverside but as UUIDs aren't universal (:P) I can't get that entity variable to the clientside version of it. Any ideas?

  • Author

I've saved so many things to NBT that I forgot the Entity ID could be useful, good thinking! God, why did they have to make DataWatchers noob proof...

  • Author

EXACTLY!!! God minecraft is stupid! Why does it have 2 different things! I meant I only use UUIDs so I kind of forgot about Entity IDs. (Note: I usually don't call to god about Minecraft's stupidness this often)

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.