Jump to content

MultiBlocks


kingGreed

Recommended Posts

Hello world !

 

So I'm new and I'm still learning about forge's basic points.

What I have been able to find out was how to make Blocks, how to handle textures, I've even saw tile entity and GUI.

However I have not been able to find information about multiblocks !

 

Basically I have a block A surrounded by blocks of type B :

 

B B B

B A B

B B B

 

And I wish that when I right click on the block A, The whole square becomes "One block" (like Xycraft's tank), and the next time I click on any of those block I get the same GUI.

I believe that's a multiblock structure. But I haven't been able to find information on it.

 

So I'm lookingfor explanations or/and code example !

 

Thanks !

Link to comment
Share on other sites

The tutorial you have given is highly pointless as to above request.

What he needs is block structure guide, not meta-data block guide.

I am interested in a guide of this topic aswell.

I doubt its hard to make it, basicly its just events and block checking,

for example you take ur block and place it in middle, right click and it will begin to check sorounding blocks, using getBlockId or any other similar world class function.

If your build matches the test it should do certain things

 

~I was here~

Link to comment
Share on other sites

What if block A checks the surrounding blocks by ID, if all blocks are Block B, then block A can do soemthing like this:

 

- Create a new TileEntityA which handles the logic for whatever you want the block to do.

- Loops trough all of the blockB's and set their TileEntityA field to it's own TileEntityA.

 

both A and B blocks have "OnActivated -> if this.TileEntityA field != null -> openGui

 

 

 

EDIT: I saw a thread like this yesterday, I belive its the same question and it has gotten an answer after mine which you might want to read :)http://www.minecraftforge.net/forum/index.php/topic,3162.0.html

 

If you guys dont get it.. then well ya.. try harder...

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.