Jump to content

Gunmetal_Gears

Members
  • Posts

    11
  • Joined

  • Last visited

Gunmetal_Gears's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Okay, so I got that working. But I have another issue now. My textured rectangle is placed on the screen with 'hard' coordinates; set numbers. Now I need to get it to always be in the center of the screen, regardless of monitor size. I've gotten the screen size using Dimension Toolkit, but I don't know how to make the rectangle always in the center, because changing the coordinates at which it renders seems to be rather random.
  2. What exactly would I have to do to handle it correctly? I don't know what I'm doing wrong.
  3. Hey there, so I'm trying to figure out how to use GuiScreens for a mod 'guidebook.' (something similar to the Thaumonomicon, if you're familiar with Thaumcraft). However, I can't get the closeScreen() or openGui() methods to work correctly. In my main gui class, I have the actionPerformed method with a switch case in it switching between the ID of the buttons; you can see this here. I've commented the openGui() line because it doesn't work. When I click on the 'update news' button, the screen becomes twice as dark and nothing renders. I know it's opening the new gui because the screen becomes darker, but the old one doesn't go away. What I don't get about this is that when I remove the openGui() line, like I have in my gui class, it closes the gui just fine. I have no idea why this happens this way. My guihandler class and other gui classes are also present within this package.
  4. Awesome, thank you! I knew it had to be something with that particular method; I just couldn't quite figure out what it was.
  5. That's definitely a step in the right direction. However, the item doesn't have any texture. It's still a pink and black square. Slightly unrelated, but I also have no idea how to get my fluid to have proper liquid physics. It has no collision with entities, they walk right through it like air.
  6. I'm having one other issue with my mod. I can't seem to get the universal bucket system to work. The link to my GitHub page is up above, Xechon added it. The issue I'm having is that I'm trying to add a shapeless recipe that takes four items (three Drops of Mercury, which are from my mod, and an empty bucket) and returns a bucket that's full of liquid mercury. As it currently stands, it creates a pink and black square in the crafting menu, and the moment I mouse over it, it crashes the game due to a null pointer exception. Here's a crash report from it: https://pastebin.com/6LyMM573 The recipe is in my init event in my Main class.
  7. Hey, look at that, it actually works! Thank you so much! Seems like the simplest mistakes can lead to the most elusive problems.
  8. Sorry about that; I'll use those tags from now on. Here's the entire console log, from the moment I pressed run to when the game's menu opened: https://pastebin.com/LRseFTZD
  9. I've renamed the json to 'fluid.json' and I am getting the same errors. Here is where I'm registering the state mapper:
  10. I don't know how to add these levels to my blockstate. There's no documentation for this anywhere, as far as I can tell, so I have no idea what I'm doing. It appears as though I'm using the wrong syntax, because I keep getting malformed json errors, but I don't know what the right syntax would be.
  11. I'm trying to add a liquid, called Liquid Mercury, but the game continually gives me json blockstate errors. Here is one of the errors: Here is my blockstate json (called liquid_mercury.json,): In game, the liquid works as it should; it flows and whatnot, but it is made up of cubes and is pink and black. Here's a screenshot:
×
×
  • Create New...

Important Information

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