Everything posted by larsgerrits
-
[1.8] [90% SOLVED] Cannot Interact With CustomFire E.G. Hit to Extinguish
MouseEvent is client-only, so you can use the stuff from the Minecraft class. It has fields for the player ( thePlayer ), the world ( theWorld ) and also the block the mouse is currently over ( objectMouseOver ).
-
Network values not being evenly distributed among conduits.
Well, where is the updateEntity method?
-
Adding more damage to a sword if a player is sprinting
If I am reading that right, it does not pass the if(attacker.isSprinting()) , so it does not detect that the player is sprinting.
-
[1.8] find entity a player is looking at
Explanation from diesieben07 for partialTickTime: http://www.minecraftforge.net/forum/index.php/topic,12681.msg65852.html#msg65852. In your case, because you don't have a partialTickTime available, you can just use 1.0F as the partialTickTime. And yes, you are right about the distance.
-
[1.8] find entity a player is looking at
I think they are the distance and the partialTickTime.
-
[1.7.10] Picture not showing
No, he means you need to put the logs in a spoiler, as they are freakin' long.
-
[1.7.10] Picture not showing
If you have missing textures, look at the logs, it shows what Minecraft is searching for instead and may help you figure out the issue. If you can't figure out why, post the logs, so we can help.
-
[1.7.10][SOLVED]A few questions...
1) You have to pass the coordinates of the entity in the constructor too, or else the entity will be at 0,0,0. 2) Only set the block to air on the server (!world.isRemote), and see if that helps.
-
[1.7.10][SOLVED]A few questions...
Uhm, please tell me you actually have a block class...
-
[1.7.10] [Solved] Cannot be cast to net.minecraft.inventory.Container?
The other work because you actually return the proper thing in the proper method.
-
[1.7.10] [Solved] Cannot be cast to net.minecraft.inventory.Container?
GuiShopTravellerOver does not extend Container, but you still return it in getServerGuiElement .
-
[1.7.10] Why does a stack's NBTTagCompound return null?
- [1.7.10] [Solved] Cannot be cast to net.minecraft.inventory.Container?
Your if-chain (why no switch?) is falling back to this line: return new FCGuiContainer(player); , which means not of your if-statements are true, so the ID must be incorrect. Show where you open your gui. Which always makes me wondering: why does the getServerGuiElement allows you to return basically anything (a Object ), and not an instance of Container by just changing the return type to Container (same goes for getClientGuiElement )?- [1.7.10] Alternatives for onCreated?
You can set an ItemStack with the desired NBTTags as the crafting result.- Use item from OreDictionary outside of Recipes?
- [1.8] Allocate more ram to mc
LOL!- [1.8] Rendering Tile Entities
You have to call WorldRenderer#startDrawingQuads() before you add the vertices, and WorldRenderer#draw() after you add the vertices.- [1.7.10]Modeling/Rendering problems
I'm sorry, I don't speak ass hole. The float was just me trying to figure out why it was crashing; It was initially set to int. As for the other stuff that’s me coding at 11 o'clock at night. I know Java to a degree but I can't figure out what I need to do with certain things. Such as instantiation. I'm still learning what needs to be instantiated and what doesn't. What the heck is a TESR? Tessellator? Thanks for the help. If you do not know how to initialize a variable in Java, you don't even know one of the most basic things in Java, and you really shouldn't mod Minecraft. So:- Disabling Grass Growth
That would make all the grass blocks in the world stop ticking, and I'm not sure he wants that or not.- [1.8][SOLVED] Issues with Custom Fire Texturing
Do you have that in the ClientProxy? If not, you should. Just a FYI, I was having some problems with custom state mappers to0, and I couldn't figure it out too...- Helpme! I want Updata mod from 1.6.4 to 1.7.x
Do you think telling us that you want to update and giving a piece of code would help? Tell us what the exact problem is, and where that problem is. So not someting like 'I want to update! Please fix my code for me!', but full, proper english sentences that makes us understand the problem so we can actually help you.- [1.7.10] Furnace-Like GUI issues [SOLVED]
tileIsolatedFurnace will always be null , as you never assign value to it...- [1.8] [SOLVED] Error loading .json file?
Your JSON file is called SteelIngot.json , but you tell it to search for item.SteelIngot.json ...- [Solved] [1.7.10] Crash when attempting to insert custom renderer
Then post code where it is registered... Look at his main mod file. He doesn't actually register any renderers, but he cancels the vanilla rendering and renders his own instead.- [1.8] [SOLVED] Error loading .json file?
Where is your your JSON file located? - [1.7.10] [Solved] Cannot be cast to net.minecraft.inventory.Container?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.