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

Because you have to send it (very bottom of the tutorial page) --

makePacket()

just creates the packet and nothing more. When I remove the queue stuff, it doesn't do anything at all.

 

Also, the side variable in OutgoingWormholePacket.execute is being set to SERVER, but it's still executing on the client, which is definitely very strange...

I like to make mods, just like you. Here's one worth checking out

Try looking at my discontinued mod's packets, MinePG.

 

link: https://github.com/ModderPenguin/MinePG/tree/master/source/minepg/rpg_common/rpg/network/packet

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Try using an update flag when setting fire block to air:

worldObj.setBlock(x, y, z, 0, 0, 0x02);

0x02 automatically sends update to the server, thus you won't have to mess with packets.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

  • Author

G'morning.

 

Try using an update flag when setting fire block to air:

worldObj.setBlock(x, y, z, 0, 0, 0x02);

0x02 automatically sends update to the server, thus you won't have to mess with packets.

 

I already tried that out. That was my very first thought, but "Flag 2 will send the change to clients" (description). So I thought to set up a tick handler on server side and make him do the setBlock stuff, but didn't work out. I guess I need to do something with packets.

 

€dit: My main issue is that it MUST be possible without sending packets (see client code). I'll be searching for some more useful code until I get back here.

You haven't wrote that you tried 0x02 flag.

Also, it's usage supposes you're doing it on client, not «set up a tick handler on server side and make him do the setBlock stuff».

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

  • Author

Sorry, I was a bit unclear. Yes, I used the 0x02 flag earlier, but it didn't work. I used it in client and AFTER that, I tried this server tick handler thing.

  • Author

Okay, I solved that issue. I needed to access the world from the integrated server (WorldServer) and set the block there to 0. Finally it worked.

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.