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.

AskHow1248

Members
  • Joined

  • Last visited

  1. I your gui handeler, your added code needs to be a case statement inside your switch statement. This video might help: Here is my gui handeler: Making inventories for Items is a little complicated, here is mine: Item: Container: Inventory: Hope it helps. There is a lot of extra stuff. I dont't think you need to creat a seprate inventory, but it's a good idea.
  2. Hi everybody, I need to be able to do something (on the server side) when my item is equiped and the player presses a key, or scrolls with the mouse wheel. Events would work, but I would preffer not to use a tick handeler. Thanks in advance!
  3. BUMP! Help please! I need to be able to click on the tet bar in the gui to make it "focused" so I can type in it.
  4. Do you mean the Playeer prameter in onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player), because the Player interface is just an empty interface.
  5. I have a packet handeler set up with some functions, but when I send a packet to the server, and the use Minecraft.getMinecraft().theWorld as my world, the world is client side!!! I need a way to get tile entity data from client side to server side, but if I can get the server-side world, I can do it. For refrence, I have a text field in my tile entity, and I need to set it through my gui. Also, if anyone know how to fix this, I can't select the text bar to type in it (in my gui).
  6. I have a gui with a text field, but I can't sellect it to type in it. I can make it sellected when you open the gui, but I can't sellect it in the gui. Gui:
  7. Use this for living drops event: event.source.getEntity(). (source is the damage source)
  8. THANK YOUhttp://minecraftforge.net/forum/Smileys/default/cheesy.gif (that was supposed to be a smiley☺)! It works!
  9. Try this link. You told me not to do that on the other thread. Do updates get sent automaticly (with getDiscriptionPacket() and onDataPacket())? http://www.minecraftforge.net/forum/index.php/topic,20782.msg105004.html#msg105004
  10. I need to update tile entity data, since they are only saven on the server. Read this: http://www.minecraftforge.net/forum/index.php/topic,20962.msg106301.html#msg106301
  11. Thanks, it works, but now Minecraft.getMinecraft().theWorld is null! I nee access to the world, so I can update my tile entities' data. Is there a way to get the world other than Minecraft.getMinecraft().theWorld?
  12. I'm useing Ars Magica 2's api, so I can't.
  13. I have a IPlayerTracker that is supposed to send a packet to the server when a player logs in. It sends the packets, but they are never recieved! Here is my code: Player Tracker: Packet Handeler: Main mod class: Tile Entity:

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.