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

I'm having some difficulty with finding information on 1.8 equivalents of 1.7 code.

 

With this code, the part between Block. and .blockID cannot be resolved. And after many google searches, i can find 1.7 code with this in it, but can not find the 1.8 equal of it.

 

private static int[] OVERLAY_BLOCKS = new int[] {
    	Block.tilledField.blockID,
        Block.woodSingleSlab.blockID, 
        Block.stoneSingleSlab.blockID,
        Block.glass.blockID, 
        Block.snow.blockID, 
        Block.ice.blockID,
        Block.glowStone.blockID, 
        Block.pistonBase.blockID,
        Block.pistonStickyBase.blockID,
        Block.pressurePlateStone.blockID,
        Block.pressurePlatePlanks.blockID,
        Block.pressurePlateGold.blockID,
        Block.pressurePlateIron.blockID,
        Block.daylightSensor.blockID,
        Block.leaves.blockID,
        Block.carpet.blockID // carpet
        
    };

 

 

Also Block.blocksList, and chucnk.getBlockID are Unresolved, and Undefined respectively.

 

 

Block block = Block.blocksList[chunk.getBlockID(wx & 15, y, wz & 15)];

 

 

 

There's some more trouble updating, but these are the ones with the least hits on google so far.

I think that blockId's has been replaced with BlockStates.

For the blocklist i don't know (but i don't exclude that here too there are blockstates instead of id's)

Don't blame me if i always ask for your help. I just want to learn to be better :)

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.