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

if I run World.setBlockToAir in a piece of code, the blocks removed turn into invisible glitchy blocks that cause me to bug up and down until I come off of them. This happens if I run the code on the server side (!world.isRemote) and as I suspected, did nothing if run on the client side.

 

I have just realised what is causing the problem as I was about to write the next paragraph, but I still don'y know how to fix it:

 

This code is run from within the actionPerformed function within a GUI window, which is of course client sided. Short of sending a packet, how could I run this code without it making glitchy invisible blocks?

No, if you set it to air on the server the engine should handle it and send the client the update packet.

Post your code.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

No, if you set it to air on the server the engine should handle it and send the client the update packet.

Post your code.

...

This code is run from within the actionPerformed function within a GUI window, which is of course client sided. Short of sending a packet, how could I run this code without it making glitchy invisible blocks?

He runs the code from a GUI, so he has to send a packet to the server to set the block to air.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.