-
Posts
20 -
Joined
-
Last visited
Everything posted by Catwolf
-
I managed to solve the problem via the removal of a large section of code from the container. Thanks for all your suggestions!
-
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.
-
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.
-
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
-
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.
-
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)); } }
-
Oh sorry I never uploaded the git repository, I spaced it out because I was finally able to fix the issue.
-
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.
-
ok, but the repository might be broken because I've never done it before.
-
This is only here because the comment glitched out and posted twice
-
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.
-
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).
-
Maybe I shouldn't have switched straight from 1.7.10 to 1.12.2 modding.
-
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
-
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.
-
Okay, I've tried creating a mod for 1.12.2 about a dozen times now, and it just doesn't seem to work. I would like somebody to point out whatever obvious mistakes I made in my mod so I attached the files. Main.java Reference.java ClientProxy.java CommonProxy.java
-
Anyone have any tutorial series' they know of for 1.12, I'm still way outdated. I haven't modded for anything above 1.7.10 and in 1.12 it is completely different.
-
Oh wow, duh. I don't know why I didn't think of that, Thanks for solving my simple problems
-
Custom Harvest Tool with Harvestability by Hand [11.2]
Catwolf replied to Trajectory989's topic in Modder Support
If you're having issues still, I believe if you set the harvest level to -1 it can be mined with hands and you can set the effective tool still. -
One thing I want to clarify first, I am using the ModelBiped class which should render the item itself. I've been working on this mod for awhile and none of my mobs are holding the items I give them, but they do drop them. I am a fairly experienced mod developer I've been doing quite a bit for the past couple years but I have never used Java for anything else so if it's a simple mistake I apologize. This is the first time I've ever tried anything more than a basic animal or mob. CatwolfianArcher.java RenderCatwolfianArcher.java ClientProxy.java