Jump to content

Catwolf

Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Catwolf's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I managed to solve the problem via the removal of a large section of code from the container. Thanks for all your suggestions!
  2. I've searched it line by line multiple times looking for errors, but all I've been able to do is make it to where only the gui is glitching. I don't know what isn't syncing, but for some reason the gui gets very confused when steam hits zero or when you open it. The tile entity is fine, I tested it with the console, but the gui is broken.
  3. I've added packets to the tile entity and it has done nothing. I don't know if I added the packets wrong, but now the numbers are going wrong for the actual tile entity too, not just the gui.
  4. I've added a generator block into my mod that allows you to heat water to get steam and produce energy from the steam. As far as I can tell, the internal parts are functioning the way they're supposed to, but the gui is getting variables confused when I open it and when variables hit 0. The block is the BlockSteamGenerator and the classes related to it are TileEntitySteamGenerator, ContainerSteamGenerator, and GuiSteamGenerator. here is the github: https://github.com/Esrome/science-mod
  5. I changed the event to the Text one and have seen no change. It must have another error. I'll give it a week and if nobody points anything out I'll have to spend a couple hours trying to figure out what I did wrong.
  6. I've been trying to add thirst into the game today, and after a couple hours of testing I haven't been able to render an additional GUI on the HUD. I've been using a RenderGameOverlayEvent.Post event void to draw a gui onto the screen and have been unsuccesful in rendering some basic text. Here's my code, I don't know if I wrote something wrong or if for some reason it isn't being called, but hopefully someone can help: Overlays.java package catwolf57.mcchoc.hud; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ScaledResolution; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType; import net.minecraftforge.fml.client.GuiNotification; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Mod.EventBusSubscriber public class Overlays { @SubscribeEvent public void onRenderGui(RenderGameOverlayEvent.Post event) { new ThirstGUI(Minecraft.getMinecraft()); } } ThirstGUI.java package catwolf57.mcchoc.hud; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.ScaledResolution; public class ThirstGUI extends Gui { public ThirstGUI(Minecraft mc) { ScaledResolution scaled = new ScaledResolution(mc); int width = scaled.getScaledWidth(); int height = scaled.getScaledHeight(); drawCenteredString(mc.fontRenderer, "Welcome", width / 2, (height / 2) - 4, Integer.parseInt("FFAA00", 16)); } }
  7. Oh sorry I never uploaded the git repository, I spaced it out because I was finally able to fix the issue.
  8. So recently I've been trying to update my ancient 1.7.10 mods to 1.10.2 and eventually to 1.12, but I've stumbled across a minor issue. Out of the dozens of attempts I've made in 1.10.2 I've never been able to render an item, and I've finally decided to give up and request help. I am certain that the solution is obvious and my lack of an understanding of updated mods is what is preventing me from solving it, so I am warning you ahead of time. Any help is appreciated. This is a link to a github repository I created with the source folder for the mod: https://github.com/Catwolf57/MinegroupMod.git . -----Okay, the whole issue was I don't know how to read. I had an extra capital where I wasn't supposed to.
  9. ok, but the repository might be broken because I've never done it before.
  10. This is only here because the comment glitched out and posted twice
  11. Oh, I downloaded the recommended forge 1.12.2 version and copy the contents of it into my mod folder. I opened the cmd window and ran gradlew setupDecompWorkspace and then gradlew eclipse in the folder. I run eclipse then select the eclipse folder in the mod folder and open it.
  12. Well I don't know how to explain it, but here's the hierarchy I guess: src>main: java> catwolf57>minecraftChocolate> Main.java proxy> ClientProxy.java CommonProxy.java util> Reference.java resources> mcmod.info pack.mcmeta Hope that crappy hierarchy answers the question(especially since if it doesn't I probably look really stupid).
  13. Maybe I shouldn't have switched straight from 1.7.10 to 1.12.2 modding.
  14. Sorry, I should've explained that better My mod doesn't load when I start the client and I've checked my mcmod file so I probably screwed up somewhere in the code. Just in case, I'll attach the mcmod file, but that shouldn't stop it from loading if it is wrong. mcmod.info
  15. Wow forgot I posted this, I do know Java but I encountered a lot of outdated code when I started learning 1.12.2 modding.
×
×
  • Create New...

Important Information

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