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.

Tessa

Members
  • Joined

  • Last visited

Everything posted by Tessa

  1. In the vanilla code, for the recipe book "ghost" recipe's, AbstractGui.fill is used to draw a gray transparent rectangle over the items which makes it look like they're see-through. I've been trying to use this trick myself, but I can't seem to figure out how to manipulate the color that function uses. Inside it, the integer get somehow decoded (my knowledge doesn't go far when it comes to what I think is called bit-shifting?) float f3 = (float)(p_fill_4_ >> 24 & 255) / 255.0F; float f = (float)(p_fill_4_ >> 16 & 255) / 255.0F; float f1 = (float)(p_fill_4_ >> 8 & 255) / 255.0F; float f2 = (float)(p_fill_4_ & 255) / 255.0F; GlStateManager.color4f(f, f1, f2, f3); Here's how it get called. AbstractGui.fill(j, k, j + 16, k + 16, 822083583); Does anyone know how I would go at changing the color/transparency of the fill?
  2. For my mod I've added several new entities, all their behavior is working perfectly, but some entities have trouble climbing slopes often getting stuck in corners, also a lot of them spin around in circles while walking or chasing the player (walk a bit > spin > walk a bit > spin > walk a bit > spin > etc)
  3. Okay, so making and sending custom packets appears to be pretty challenging and I doubt that I have the knowledge to take that beast on. In some tutorials I see people using the ItemStackHandler Capability, in which case they often have inventories in an entity instead of a container. Would that be an alternative or do you guys know a different workaround for me?
  4. I was assuming the item/slot manipulation functions in the base container class would take care of it manually, but then i'll take a look at the vanilla click code. Thanks a lot!
  5. I've been trying to build a custom container block with a GUI that has an input slot that can consume items. So far i can open the GUI, see and use my own inventory, put items into the input slot of my GUI and by pressing a button in the GUI, the stack in the input slot is "consumed" one item at a time. However, when i click the input slot, I get all of the items I put in back, even if the slot appears to be completely empty. I'm assuming there is something going wrong communicating the changes in stack size to the server and when I click the slot, the game assumes nothing has changed. Does anyone have any idea of what I could've missed?

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.