Everything posted by starwarsmace
-
[1.7.10] Having some trouble with getting recipes to work.
First of all, you have to register stuff in the pre-init. Though that shouldn't totally affect it...
-
[1.7.10] Having some trouble with getting recipes to work.
What happens when you run your code? Does it crash? If so, give the crash report. If it doesnt crash, say what happens.
-
[1.7.10]How would I make an image inside a gui more transparent?
Well I need it to fade slowly. So Im not sure if I have an alpha layer, will let me fade it away, unless I can find a GL function for it.
-
[1.7.10]How would I make an image inside a gui more transparent?
So I need to make an image that fades away. I know how to do it with strings by changing the alpha in the hex number. Would I use the OpenGl's color4f function, to make it more transparent? Or is there an easier way, or would that not work.
-
Modelling, is there anything better than Techne?
Or you can code it yourself. In the long run, it turns out better, even though at first, they look a bit off and stuff. You do learn quickly though. Just a pain in the neck a first, when you have to first keep on launching minecraft over and over again just to see how your model looks like, but I think it is better than using a software.
-
[1.7.10]Is draw screen called every tick?
*facepalm* That was an idiotic mistake. Ill try that.
-
[1.7.10]Is draw screen called every tick?
Is updateScreen able to draw? For some reason its not letting me draw my stuff on the updateScreen.
-
[1.7.10]Is draw screen called every tick?
Oh. That isnt what I want.I actually want it at like 10 fps. I could just check whether 12 frames have passed then run my frame, until the end. Would that be right? A tick is already at 20 fps, so like diesieben07 says you should use the tick method for consistency. You can check if 2 ticks have passed if you need 10fps. The frame rate is configurable and will depend on device and user settings, so you don't want to depend on that for timing. Oh, alright Ill try that.
-
[1.7.10]Is draw screen called every tick?
Oh. That isnt what I want.I actually want it at like 10 fps. I could just check whether 12 frames have passed then run my frame, until the end. Would that be right?
-
[1.7.10]Is draw screen called every tick?
Thank you and frames is what I want I think for animations. And Ill check out EnumChatFormatting.
-
[1.7.10]Is draw screen called every tick?
Hello guys. So Im making an animation for a gui and Im going to be changing the background every tick or so. Does drawscreen get called every tick? Also, kindve related question. How do you have text formating, like underlining. In the font renderer class it says, " Set if the "n" style (underlined)is active in currently rendering string." Where would I put the "n"?
-
ChickenBones Multipart - [Highly Advanced]
No its fine. I completely understand. I am patiently waiting!
-
[1.7.10] How would I check which slot a mouse clicked?
So I need to see which slot a mouse clicked in the inventory. So what I tried was getting the slot display x or y and comparing it to the mouse x or y. I thought it would work but the numbers were really random. And I couldnt find a good way to check. So is there some function that I can call in guiInventory to get whether a slot was clicked? Also, Im checking whether it is a middle click.
-
ChickenBones Multipart - [Highly Advanced]
Are you ever going to do this?
-
[1.7.10]How would I check if the players inventory is open?
It appears to me that the Slot.displayX(or y) is offsetted. For example, the first slot on the screen is around 240 pixels on the x. But the slot.displayX is saying the x is on 8, when 8 is all the way at the edge. It looks like to me it is offeseted. Does it start at the left side of the players inventory? And does the y start at the top of the inventory? If so, is there some equation that I can use to get the offset, since I know that the pixel lengths change when the gui size changes or its fullscreen or not.
-
[1.7.10]Turn a file into a resourcelocation
I am making a mod for a server and I do MinecraftServer.getServer.getFile("models/sword.obj"). Is it possible to turn that into a resource location, so I can use it for my renderer.
-
[1.7.10]How would I check if the players inventory is open?
Oh. Stupid me. Thanks for the help though.
-
[1.7.10] Trying to render a Techne Model, error in code?
Can you show your renderer?
-
[1.7.10] [SOLVED] Checking Player for Custom Armor w/ NBT Data
Give the crash.
-
[1.7.10]How would I check if the players inventory is open?
For some reason MouseInputEvent didnt call. It might be because Im not registering it on the right bus. It has no javadocs, so I was wondering whether any of you know. Also, im currently registering it on MinecraftForge.EVENT_BUS
-
[1.7.10]How would I check if the players inventory is open?
I should probably make a new thread for this but oh well. This is an open gl questions really. https://www.opengl.org/discussion_boards/showthread.php/185705-How-do-I-use-smoothing-groups-from-obj-files?p=1264468#post1264468 To summarize what I asked in that thread, how would I smooth a .obj model using the smoothiing groups?
-
[1.7.10]How would I check if the players inventory is open?
Sorry about not telling you guys. I figured it out. I just used the GUIOPEN event, though diesieben's method is much better. Anyway, now I have another question is there a good and efficient way to see which slot the player clicked? Edit: By the way, it has to be the middle click. And is using the lwjgl Mouse class x and y and then compare it to the x and y to all the slots in the inventory and see which was the closest a good idea?
-
[1.7.10]How would I check if the players inventory is open?
I looked through many of the players functions. But I cant find anything that tells you whether the inventory is open or not. How would I do this?
-
[1.7.10] How would I add a picture in my GUI
Hmmm.. That might work. Ill try it out.
-
[1.7.10] How would I add a picture in my GUI
Yeah. I want to draw a .png onto a GuiScreen.
IPS spam blocked by CleanTalk.