Jump to content

[SOLVED]GUIs? How?


Davidobot

Recommended Posts

yes... thats not hard at all :)

 

All you need to do is to create an block which extends blockContainer,

create a TileEntity for that block and a GUI class for that TileEntity/Container.

It's rather easy and mostly copy-paste existing code from minecraft classes :P

 

On the forge wiki there are some tutorials for GUI's have you read this one?

http://www.minecraftforge.net/wiki/Containers_and_GUIs

 

 

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

Link to comment
Share on other sites

yes... thats not hard at all :)

 

All you need to do is to create an block which extends blockContainer,

create a TileEntity for that block and a GUI class for that TileEntity/Container.

It's rather easy and mostly copy-paste existing code from minecraft classes :P

 

On the forge wiki there are some tutorials for GUI's have you read this one?

http://www.minecraftforge.net/wiki/Containers_and_GUIs

That was helpful I didn't realize that tutorial was updated. This is a really noob question: How do you create a TileEntity that implements IInventory?

 

EDIT: Nevermind. How do I exactly make a GUI image for exactly that inventory?

If you found this post helpful, please take your time to give me a "Thank You". :)

Link to comment
Share on other sites

How do you create a TileEntity that implements IInventory?
class TileEntitySomethingClever extends TileEntity implements IInventory.

 

EDIT: Nevermind. How do I exactly make a GUI image for exactly that inventory?

Well you have to create one inn paint or gimp or photoshop etc.

What I did for mine was to go into PS and just copy paste and move around stuff from the original GUI's

You can find the original GUI images inn the

"mcp_Directory\temp\bin\minecraft\gui"

 

And use them as a starting point :)

The images Demo_bg, slot, Container and  should give you some good starting images. :)

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.