Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Beep

Members
  • Posts

    9
  • Joined

  • Last visited

Beep's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I really appreciate your help. Honestly, I think I'm just not good enough at Java to be able to figure a lot of this out. I think the best option for me right now is to stick to making new crafting recipes, as it will get the job done for now. I'll either have to wait until I understand java better, or until someone makes a comprehensive guide for people like me
  2. I have, and so far I've got that it needs to be called in FMLClientSetupEvent in my main method, which is definitely something I needed to know but not quite what I was looking for. Also, I understand that the inputs are ContainerType<? extends M> type and ScreenManager.IScreenFactory<M, U> factory, but I don't know how to make a new ContainerType or IScreenFactory. Most questions based around that method seem to be asking things at a level I am not at. I'm still looking but I'm not understanding it so far
  3. looking at the method, I'm not quite sure how to use it, I'll be honest. I can figure out that exampleMethod(int a, Object b) needs an int and an object as an input, but I'm not sure what registerFactory(ContainerType<? extends M> type, ScreenManager.IScreenFactory<M, U> factory) requires, or how to decipher it. I'm not that knowledgeable with Java unfortunately.
  4. Okay, ScreenManager has openScreen, getScreenFactory, getFactory, and registerFactory. There's also createScreen. I'm not sure which one you are referring to, I can't quite understand what they do well enough to see which one links the container and the screen
  5. gimmi a sec to go look in ScreenManager
  6. Okay, so far this is what I have (this method is inside the class for the crafting block I am making): https://pastebin.com/gVhDNaFr The result is that nothing happens when I click on the block. Not really surprising, but I'm not sure where to go from here.
  7. Thanks! I'm looking at the method now and I'll see if I can figure it out.
  8. I've looked at the onBlockActivated method in the vanilla crafting table, but i'm not sure how much of it applies and what changes I need to make. So far, I've copy/pasted the onBlockActivated() method into my block's class, as well as the getContainer() method and ITextComponent field since they are both needed for onBlockActivated, and it almost recreated the vanilla crafting table but whenever I click on the block the inventory closes instantly. Progress, but not quite where I need to be. My current tasks are: -figure out how to keep the crafting GUI from closing instantly when it is opened -figure out how to create a new crafting GUI rather than the pre-existing crafting table
  9. I'm trying to understand how to do custom crafting GUIs. I have a custom method for my crafting block and I can make things happen when it's activated but I can't figure out how crafting inventories work. Is there a guide somewhere that I am missing? I know that it has changed from 1.12 which used to use the openGui() method, but I'm not sure how the updated system works.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.