Jump to content

setBlock method, placing blocks with metadata? [SOLVED]


Koopamillion

Recommended Posts

I'm using the setBlock method, anyway, I want it to place a block with specific meta data; e.g: MBlocks.CABLE <--- Has 2 metadatas, 0/1. Anyway, heres the method(s):

 

Block block;

 

block = MBlocks.CABLE; <--- HAS TWO METADATAS! (How do I place it with metadata 1?)

 

placeBlock(p_77648_3_, p_77648_4_, p_77648_5_, p_77648_6_, i1, block);

 

private void placeBlock(World p_150924_0_, int p_150924_1_, int p_150924_2_, int p_150924_3_, int p_150924_4_, Block p_150924_5_){

p_150924_0_.setBlock(p_150924_1_, p_150924_2_, p_150924_3_, p_150924_5_, p_150924_4_, 2);

 

}

Link to comment
Share on other sites

I have no idea what in the f*** you are talking about.

 

I think he copy-pasted a bunch of shit and has no idea what it does, so he has no idea how to update it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.