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 Forgers, I am ZetaHunter and I recently started developing a mod,

the idea is basic, its just different traps, whatI have made so far is basic triggering,

Custom texture's, and other simple stuff, what I have been trouble with is making gui like furnace, cause I want to create a block comptaible with transport mechanics and when I click on block I want to have custom gui with such stuff as fwe inventory slots and buttons and etc. ( I will deal with that myself, just need basic sample of creating it :) )

next is CustomRendering, not related with this mod, but with another I was thinking of but I fail to understand how to create custom models for blocks, if any help is giving I would be very thankfull,

 

and last but not least is I am wondering how to make it so I could have tile entity storing int Str and call it from the block, so for example touching a block with such tile entity would print to console the stored variable, but sadly last time I tried to print it, it droped null reference exception, but does work from inside tile entity class I have.

 

Thanks to who ever replies and possibly helps me here :)

Dont forget I am just a begginer in Java and FML, though I been coding in PHP and C# in past (like all time...)

~I was here~

For your GUI issues: http://www.minecraftforge.net/wiki/Containers_and_GUIs - that's a tutorial on that kind of stuff.

For your custom model for blocks, just use the bindTileEntitySpecialRenderer(Class <? extends TileEntity>, TileEntitySpecialRenderer) method in client registry. If you need any specification, feel free to ask :)

Also, you can look at the code for the EE3 Calcinator by Pahimar in github for custom block models. A lot of the minecraft code I've learned from the open source mod, EE3, so it's a good piece of code to look at in general.

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.