Jump to content

Recommended Posts

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.

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.