Jump to content

[1.7.10] Block with GUI help


caramba2654

Recommended Posts

https://github.com/caramba2654/Inventory-Rules

 

Okay. I tried, but I just can't wrap my head around adding a GUI.

 

I know that I have to add a block. Then add a Tile Entity to it. Then create a GUI for the block. Then connect those two with a container.

 

I tried following Pahimar's Equivalent Exchange 3 source code (because I like his coding style), but I can't figure out what I'm doing wrong.

 

I then tried looking for other tutorials, but they did little to help me.

 

So I ask you: what did I do wrong? I got it almost right most of the times. I could place the block, but I couldn't move it with a piston, so it was a Tile Entity. I just couldn't open the GUI. So I think it's something in that part of the code. Well, I dunno. Right now when I right click the block it crashes, so I need to figure that out too. :P

 

Well, I'll be glad if you pointed me what I did wrong and what I can do to fix it.

 

Here are some links to the most important files that I probably screwed up:

 

https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/block/BlockRuleCreator.java

 

https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/tileentity/TileEntityRuleCreator.java

 

https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/inventory/ContainerInventoryRules.java

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.