Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 !

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~

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.