Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make an inventory menu in Forge?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Alsan Ali

How to make an inventory menu in Forge?

By Alsan Ali, July 21, 2018 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Alsan Ali    0

Alsan Ali

Alsan Ali    0

  • Tree Puncher
  • Alsan Ali
  • Members
  • 0
  • 10 posts
Posted July 21, 2018

I'm trying to make an inventory menu where you select which server you want to join, but I have no idea where to start. I don't know how to construct an Inventory or anything like that, since it requires me to enter an ILockableContainer which I obviously can't construct.

 

I've done this in Bukkit/Spigot before, but I don't want to use that now (I like Forge's API better).

  • Quote

Share this post


Link to post
Share on other sites

MrJake    1

MrJake

MrJake    1

  • Tree Puncher
  • MrJake
  • Members
  • 1
  • 28 posts
Posted July 21, 2018

Maybe this will help?

 

https://shadowfacts.net/tutorials/forge-modding-112/tile-entities-inventory-gui/

  • Quote

Share this post


Link to post
Share on other sites

jomoetnt    0

jomoetnt

jomoetnt    0

  • Tree Puncher
  • jomoetnt
  • Members
  • 0
  • 6 posts
Posted July 22, 2018 (edited)

I don't know a lot about the topic but here are a few links that might help you:

https://www.youtube.com/watch?v=MHgS0GTNqq0

https://www.youtube.com/watch?v=B4HWFG8VJM0

http://jabelarminecraft.blogspot.com/p/minecraft-forge-1721710-gui-and-input.html

http://jabelarminecraft.blogspot.com/p/minecraft-modding-block-with-simple-gui.html

https://wiki.mcjty.eu/modding/index.php?title=GUI-1.12

 

Also I think it might help to look at the GUIContainer class.

EDIT:

I found a step by step guide on this here:

https://shadowfacts.net/tutorials/forge-modding-112/tile-entities-inventory-gui/

EDIT 2:

I just realized someone else posted the same link.

Edited July 22, 2018 by jomoetnt
  • Quote

Share this post


Link to post
Share on other sites

jabelar    594

jabelar

jabelar    594

  • Reality Controller
  • jabelar
  • Members
  • 594
  • 3266 posts
Posted July 22, 2018 (edited)

Do you really mean an "inventory" menu? Or do you just mean a server selection GUI? Those are different things. You said you wanted to select the server, and at the point you're selecting a server I don't think the player would even have an inventory. So it doesn't make sense to want an inventory menu to select a server. What exactly are you trying to do?

Edited July 22, 2018 by jabelar
  • Quote

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Share this post


Link to post
Share on other sites

Draco18s    2414

Draco18s

Draco18s    2414

  • Reality Controller
  • Draco18s
  • Members
  • 2414
  • 15996 posts
Posted July 22, 2018
20 minutes ago, jabelar said:

What exactly are you trying to do?

By this we mean:

Tell us what you want your user to see/do/interact with/have happen. Do no explain your attempts to code it.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • loordgek
      [1.16.5] Help with custom Event

      By loordgek · Posted 27 minutes ago

      yes  
    • Luis_ST
      [1.16.5] Help with custom Event

      By Luis_ST · Posted 50 minutes ago

      I've already found out that the bus is wrong   what do you mean by that? do you mean this: MinecraftForge.EVENT_BUS.post(event)  
    • loordgek
      [1.16.5] Help with custom Event

      By loordgek · Posted 1 hour ago

      https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/api/event/ModEventFactory.java you never post the event
    • Draco18s
      [1.16.5] Help with custom Event

      By Draco18s · Posted 1 hour ago

      The error is caused by registering the event to the wrong bus. Change the bus, error goes away.
    • Luis_ST
      [1.16.5] Help with custom Event

      By Luis_ST · Posted 1 hour ago

      I already thought I wasn't sure   where is the error then? this is my enchanting table container (where i sue the event) https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/common/inventory/container/ModEnchantingTableContainer.java
  • Topics

    • Luis_ST
      6
      [1.16.5] Help with custom Event

      By Luis_ST
      Started 4 hours ago

    • hammy3502
      1
      [1.16.4] Fluid Flowing Very Oddly

      By hammy3502
      Started 19 hours ago

    • <Gl33p_0r4nge>
      0
      [1.16.4] Screen Render

      By <Gl33p_0r4nge>
      Started 4 hours ago

    • forgnog
      0
      My Minecraft Forge Server Don't Start and I Don't Know Why

      By forgnog
      Started 4 hours ago

    • mikey3977
      4
      server won't start up

      By mikey3977
      Started December 4, 2020

  • Who's Online (See full list)

    • brok4d
    • diesieben07
    • forgnog
    • zombiedarwin
    • Microcellule
    • UltraFox_10
    • Zeher_Monkey
    • loordgek
    • Lucca_Lindup
    • a fellow friend
    • vemerion
    • Aviator737
    • Ezequiel052
    • S-Spirit
    • Astrow ( Astrow )
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make an inventory menu in Forge?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community