Everything posted by larsgerrits
-
[Solved] (1.7.10) Seed&Crop Crash Problem
First, go follow some coding conventions. If you've done that, move your new blockref(); before the new itemref(); call.
-
TileEntity problems!! Please Help! [SOLVED] [MC 1.7.10]
You don't need the instance variable. You need to get the TileEntity in the render class using IBlockAccess#getTileEntity(x,y,z). That gives you a instance of the TileEntity which you can use for getting variables.
-
[1.7.10]hasEffect() Deprecated
Also, don't store the hasEffect in the item class, else it will be shared across all item instances.
-
HelpMe protection Mod 1.7.2
Hajjdajkdacljnvxkvlksjhlajncklhsciaukbkuawulhcakucjnsllhcahcjnakulcna.
-
ChickenBones Multipart - [Highly Advanced]
In the ExamplePipe class, you extend BasePipe. What class is that? I don't have that in my workspace? If i need to make it, what does it need to have?
-
ForgeMultipart 1.7.10 [HELP]
What do you want to do with FMP? In the Tutorials subforum is a tutorial on basic cables supporting covers. It isn't finished yet, and i'm working on making it Java coded (instead of scala in the tutorial).
-
[Solved] (1.7.10) Seed&Crop Crash Problem
java.lang.NullPointerException: Unexpected error at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(SourceFile:57) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:595) at net.minecraft.world.World.setBlock(World.java:441) at net.minecraft.world.World.setBlock(World.java:576) at net.extend.mod.functions.addseed.onItemUse(addseed.java:48) What's on line 48 in the addseed class? BTW, You might want to look at some Java Coding Conventions, cause your naming is horrible.
-
How to detect if the gui is in Fullscreen mode
You are setting the minX and minY values to getMinX() and getMinY() method in GuiScreenWidget, but those are 0 because they're not initialised. Then you pass in those values, but because the passed in values are 0, you set the minX and minY values to 0. You have 2 options with your current setup: 1) in the RadioCrystalGui, call the super method without parameters, or 2) pass 176 and 166 (default values) instead of minX and minY.
-
[1.7.10]Getting the block the player is looking at problem
Don't know if this is the problem, but on this line: if(props.getRayTraceX(distance) != props.getLastPosX2() || props.getRayTraceY(distance) != props.getLastPosY2(){ You don't check for the Z coord. Maybe that's intended, but i may just point it out.
-
Including an image and drawing it
You can use the RenderGameOverlayEvent, in which you can draw a ResourceLocation location to your image file.
-
-
How would he know what those were? He just copied without nowing what the code does and expects it to run!
-
Help Me Pless renderer
What's wrong? What are you expecting it to do? We need more information!
-
[1.7.10] [SLOVED] *Custom* entity animation
I suggest this tutorial: http://jabelarminecraft.blogspot.nl/p/complex-entity-models-including.html[/url. It is made by a guy called Jabelar who is pretty often on these forums and is a pretty good minecraft modder. He also has other tutorials that i found very helpful.
-
[1.7.10] how do i get the world name
What do you mean "does NOT work"? What doesn't work? What do you get?
-
[1.7.10]Crafting restriction
Make your own IRecipe. In a method you must check if the player has permission, and give the output. Else, don't.
-
TileEntity desynchronized between Client and Server
No, if world.isRemote == true, you are on the client, else you are on the server.
-
Can't move items in inventory using .displayGUIWorkbench
Yeah, but your coords are probably way more then 4 blocks away. If you go to 0 0 0 you can move the items. Thats why you made it a dirty work-around, instead of making your own classes, which is the best solution.
-
[SLOVED] 1.7.10 Are there a gui close event?
You can use the GuiOpenEvent, in which the GuiScreen object is null when closing a gui.
-
[SOLVED][1.6.4] Gui Bar Not Saving
Do you have a GitHub? If so, post the link so we have all the code. Else, post the IGuiHandler class and the Container class.
-
[SOLVED][1.6.4] Gui Bar Not Saving
From where do you call the addPower method? I think your client and server are desynchronized.
-
How would I - Right clicking block yields a message in the chatbox
Remove the @SideOnly stuff
-
[SOLVED][1.6.4] Gui Bar Not Saving
Did you register the TileEntity?
-
How to detect if the gui is in Fullscreen mode
Knowing the middle of the gui is always in the middle of the screen, you can use (width-xSize)/2. That gives you the middle of the screen, and base your slots around that value (same for the y but height and ySize
-
Gui Text Colour Question
That is indeed the value that determines the color. It is the hexadecimal value for the color tht minecraft uses for the gui text. If you want to change the text color you can go into a image editor, get the color you want and there is somewhere a number that is made of numbers and letters. Then just copy that number, and paste that into there with 0x in front of it (example: 0xFF0000 is red).
-
world.provider.dimensionId error
That is VERY basic java, almost the first thing you learn. It's called renaming parameters.
IPS spam blocked by CleanTalk.