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

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

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.