kingGreed Posted January 28, 2013 Posted January 28, 2013 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 ! Quote
kingGreed Posted January 30, 2013 Author Posted January 30, 2013 I can't still find any informations on multiblock... Anyone got a tutorial ? Quote
Dark2phoenix Posted January 30, 2013 Posted January 30, 2013 Did you try the tutorial on the Forge WIKI: http://www.minecraftforge.net/wiki/Metadata_Based_Subblocks Quote
ZetaHunter Posted January 31, 2013 Posted January 31, 2013 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 Quote ~I was here~
Mazetar Posted January 31, 2013 Posted January 31, 2013 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 Quote If you guys dont get it.. then well ya.. try harder...
Recommended Posts
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.