Jump to content

Recommended Posts

Posted

Hey all,

 

I'm trying to follow a tutorial to add a custom furnace into the game, and it uses the function "world.getBlockId", which is now defunct as far as I can tell.

 

Are there any other ways to do this in 1.7.2?

 

Link to the video guide I'm following, around the point it's used :

 

Thanks in advance for any help.

Posted

Use world.getBlock() and set world.setBlock(). If your trying to do something like this in 1.6.4:

if(world.getBlockId(x, y, z) == Block.furnace.blockID)

 

Then the 1.7.2 version would be:

if(world.getBlock(x, y, z) == Blocks.furnace)

 

Hope this helps!

Potato's have skin. I have skin. Therefore, i am a potato.

 

Follow me on Twitter!

http://www.twitter.com/I_Mod_Minecraft

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.