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 would I be able to set a block(Like redstone) in the air without it not placing? Im trying to copy things from 1 world to another and it keeps breaking off

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

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

I think I ran into something like that when I was trying to generate some custom structures in-game. When there is world-gen happening, I don't think neighbors notify, but during the game they usually do.

 

In 1.7.10 I think you can stop the notification with the "flag" parameter passed to the World#setBlock() method. The comment for that method says:

    * Sets the block ID and metadata at a given location. Args: X, Y, Z, new block ID, new metadata, flags. Flag 1 will

    * cause a block update. Flag 2 will send the change to clients (you almost always want this). Flag 4 prevents the

    * block from being re-rendered, if this is a client world. Flags can be added together.

 

So I think you would use flag = 2. This won't update neighbors but will still update the client.

 

I'm not sure how to do this in 1.8, as the World#setBlockState() method doesn't seem to have that flag anymore.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

I'm not sure how to do this in 1.8, as the World#setBlockState() method doesn't seem to have that flag anymore.

 

Just like in 1.7.10, there's an overload of

setBlockState

with and without the

flags

argument.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

I'm not sure how to do this in 1.8, as the World#setBlockState() method doesn't seem to have that flag anymore.

 

Just like in 1.7.10, there's an overload of

setBlockState

with and without the

flags

argument.

 

That makes sense. Thanks for the confirmation.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.