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.

lethinh

Members
  • Joined

  • Last visited

Everything posted by lethinh

  1. Use ItemStack#areItemStacksTagEqual
  2. I am having a problem that I don't know how to check if the bucket can pick up the liquid? And I tried this but this only work with bucket that inside Vanilla for (int i = 0; i < this.craftMatrix.getSlots(); ++i) { if (this.craftMatrix.getStackInSlot(i) != null && (this.craftMatrix.getStackInSlot(i).getItem() == Items.WATER_BUCKET || this.craftMatrix.getStackInSlot(i).getItem==Items.LAVA_BUCKET)) { this.craftMatrix.setStackInSlot(i, new ItemStack(Items.BUCKET)); } else { this.craftMatrix.extractItem(i, 1, false); } } I would greatly appreciated your help!
  3. I know this is a really dumb question but I wondered if I can do that.
  4. I am having problem that I don't know how create a tile with fluid using IFluidHandler capability? Could you help me?
  5. I have problem that the item insert/extract doesn't work. Each time I insert, the stack I insert doesn't decrease and when I extract, the stack doesn't take out. Here is my code: TileSolderingStation: https://pastebin.com/Xzw57H6S ItemHandlerBase: https://pastebin.com/bdgqDhka ItemHandlerPersistentCrafting: https://pastebin.com/fEbec0Mv
  6. So what method will I use if I use IItemHandler to update the progress bar?
  7. I mean how to make it work wit Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties. They only use IInventory
  8. I mean how to make it work wit Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties. They only use IInventory
  9. I know this is a really dumb question but I wondered if I can cast from IInventory to IItemHandler. Because it has some methods that use IInventory instead of the IItemHandler capability system. Like Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties.,... I would greatly appreciated your help!
  10. I mean the tooltip when it show. When I open my inventory, the world show gray not the model. This is not about the model. It is about the tooltip.
  11. Here is my code: https://pastebin.com/jwaFtc6N It is an event handler. I have registered it. but when I opened my inventory, it showed this: Could you help me? If you can, I will greatly appreciated your help!
  12. I am having a problem that I do not know how to get time of of an entity (breeding time, dropping items time...)? I would greatly appreciated your help!
  13. What kinds of recipe is it shaped recipe (9 inputs and 1 output) or another recipe (1 output and 1 input) or something else?
  14. I am having problem I don't know where is the method markBlockForUpdate in World class (used to be available in 1.7.10) ? And I don't know how to find what methods and fields change in mcp mappings between versions. Could you guy show me?
  15. I am having problem I don't know how to pull the all the mobs and animals in range to the position of player,entity...? I am greatly appreciated your help if you can show me.
  16. Could you tell me how to get the weight modifier of the enchantment? I have tried this code but this only for 1.7.10. And I don't how it should work in 1.10.2:
  17. Where is the field enchantmentsList is forge 1.10.2?
  18. I am having problem that I don't know how to get the entity NBT and save it into the stack (spawn egg).

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.