Skip 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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. Could you post your code, and use the code/spoiler buttons when creating a post/reply please.
  2. Drag type is quite obvious it is the state of the drag the player is trying to use From container getDragEvent which is called in Container#onSlotClick /** * Args : clickedButton, Returns (0 : start drag, 1 : add slot, 2 : end drag) */ ClickType is whether the player is shift clicking, or drag clicking etc. Look at ClickType. And the other to are the same so...
  3. You use new SlotItemHandler to add slots to a container that's TileEntity uses ItemStackHandler.
  4. You definitely misunderstood, what they meant was you create three classes one Called CommonProxy where things that need to happen on both sides go, then you have ServerProxy and ClientProxy which call the super method of CommonProxy. Though I don't see why it needs to be done that way. You could also put everything in ServerProxy and have ClientProxy extend ServerProxy, and call super methods. Though I just stick to using my Main Class.
  5. I have never seen anything that requires a tool to be used to break an IGrowable object, but you could create a fake player. From BlockEvent.BreakEvent /** Reference to the Player who broke the block. If no player is available, use a EntityFakePlayer */ Or even store the players UUID and Name when they place it, then check if they are on use the player if so, if not create one(recommend the first more).
  6. You never do anything in your common proxy, which is the servers side.
  7. Is angelicOre ever initialized. Because it is a NPE.
  8. Also packets haven't really been changed since 1.7.10 either, just thought I would throw that in.
  9. You weren't supposed to use player.displayGui(...) well I mean you soulc, but why not create your own handler for it. Not sure if you can anymore I have never used it.
  10. If you are using a custom gui and a custom container you should also be using a GuiHandler, which it is commonly called, but it is just a class that implements IGuiHandler.
  11. Almost nothing has changed since 1.7.10 when dealing with Containers and Guis.
  12. You subtract from the stacksize then you damage the item?
  13. First server handles all data. Second it isnup to you when and where to send, because it is based on what you want changing the damage to do. Sending it back would be adding a return to the Handler.
  14. Post your code and the exact error.
  15. Oh, ok I had the wrong import in my project. Good thing I am not actually using it.
  16. tooltip.add(I18n.translateToLocal("")); It is deprecated as of 1.10 not sure if it will be removed or not.
  17. We can't do anything without the code. Do you ever use Minecraft.getMinecraft().theplayer?
  18. You should have your own Container and Gui. You will also need a GuiHandler which is a class that implements IGuiHandler. There are plenty of tutorials out there for those, as they haven't really changed much.
  19. Look at onItemRightClick in Item it has changed and instead of EnumAction.BLOCK use EnumAction.BOW
  20. How do you put Items into the inventory?
  21. Probably has something to do with your container.
  22. I believe both onItemRightClick and onPlayerStoppedUsing have been changed.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.