Everything posted by Draco18s
-
DrawRect() not working in GuiScreen
I may be wrong, that was what I thought was happening from an initial examination. I haven't messed with guicode in a while.
-
Minecraft crashes when opening custom crafting table
What you should have is if(ID == mod.guiIDMoriumWorkbench) { return ContainerMoriumWorkbench(player.inventory, world, x, y, z); }
-
DrawRect() not working in GuiScreen
Nothing you're doing in drawScreen is visible because you're calling super.drawScreen() after drawing. super() is coming along and drawing on top of it, hiding it.
-
Minecraft crashes when opening custom crafting table
FFS, why do we keep seeing this? if(ID == mod.guiIDMoriumWorkbench) { return ID == mod.guiIDMoriumWorkbench //... You already checked the ID, why are you checking it again?
-
[Solved][1.7.10] checking biome location
I'm not surprised. To debug an if-statement you need to be logging outside of it and printing out the objects being compared not the comparison result.
-
Out of nowhere my game closes and an error appears on my modpack!
java.lang.ClassCastException: danger.orespawn.RenderElevator cannot be cast to net.minecraft.client.renderer.entity.RendererLivingEntity at com.thevoxelbox.voxelmap.n.do(Unknown Source) Looks like VoxelMap and OreSpawn don't get along. The elevator is being seen as a LivingEntity by VoxelMap but its renderer is probably a TESR.
-
[1.9][SOLVED] Changing cursor icon to one of "standart" system icons
(Unfortunately aside from googling "how do I change the cursor" I am unable to help)
-
[1.8.9][SOLVED] Problems with PacketHandler and getXP
0) do not use getBlockById. Just because the block ID is what you have in your code in your development environtment does not mean that that is what it will be when someone else loads your mod. Just compare blocks. if(block == Blocks.stone) 1) don't cancel the block break event, you want to interrupt the EventPlayerBreakSpeed (If I am remembering its name correctly). 2) GuiStatlist is a client-side class, you can't just directly add xp to the gui. That will crash the server. You need a Capabilities object that will save the player's skills and exp so that it can be both network-safe and persistent.
-
File location problems
How are you trying to load the files? (That means "show your code")
-
[Solved][1.7.10] checking biome location
That console output matches neither what I did, nor what you did (and is useless).
-
[1.9] Forge API of some sort? [UNSOLVED + A few questions]
I understand how you're doing the input and output, but you can't oredict that the way you want. You need to create a recipe that takes * input and provides * output in the same class so that you can do the appropriate math.
-
[1.9] Forge API of some sort? [UNSOLVED + A few questions]
1) Why are you passing two HammerRecipe s to addRecipe? 1b) What is this class? 2) new HammerRecipe(Blocks.log, OreDictionary.WILDCARD + 1) makes no sense: you can't have a metdata that high and it in no way refers to the metadata of the other object. You need to create your own version of IRecipe that takes a block and a wildcard metadata, which takes the input item stack's actual metadata and adds 1 (%16).
-
[Solved][1.7.10] checking biome location
Do it the other way around System.out.println("Getting biome: " + event.player.worldObj.getBiomeGenForCoords(event.player.getPlayerCoordinates().posX, event.player.getPlayerCoordinates().posZ)); if (event.player.worldObj.getBiomeGenForCoords(event.player.getPlayerCoordinates().posX, event.player.getPlayerCoordinates().posZ) == BiomeRegistry.biomeFreon){
-
[1.9][SOLVED] Changing cursor icon to one of "standart" system icons
Just ship the png. It's 3 kilobytes.
-
[1.9] TileEntity empty packets
markDirty only indicates that the data has changed and will need to be saved to disk when the next save() cycle runs. It does not indicate that the data needs to be synced to the client. IIRC, you want World#markBlockForUpdate()
-
Getting actual ores from the OreDictionary
The only thing "special" about an API is that it comes with an implied contract that says, "this will never change." That is, once you have an interface called IMyRecipe that supplied some method ItemStack getTheRecipeResult(...) then that interface will forever exist in that package location with that name and that method. Some people in the modding community don't understand this, *cough, Reika, cough,* and they will modify their API with every release of their mod, breaking any integration someone else went to a lot of work to make sure it played nice. The crash then occurs in the other person's mod, and that person may have fucked off to the outer reaches of space and not give two shits any more. Good job hero: your API changes made someone else's mod crash (and now they hate your guts). (And this is why my Reasonable Realism mods no longer support Rotary Craft)
-
[Solved][1.7.10] checking biome location
Well, the sound doesn't play on the server because World#playSound on the server thread is empty. What you need to do is debug this line: if (event.player.worldObj.getBiomeGenForCoords(event.player.chunkCoordX, event.player.chunkCoordZ) == BiomeRegistry.biomeFreon){ And figure out why it isn't doing what you want.
-
[1.9] Forge API of some sort? [UNSOLVED + A few questions]
Oredictionary.WILDCARD has a value of 32,767 (iirc). It is larger than the metadata value allowed on an item stack, adding 1 to it isn't going to do what you want. I can't tell you what you should be doing because I can't figure out WTF you want your hammer to do. Write it in plain English as if I was a player of your mod. What the fuck does this tool do?
-
[1.9] Command and messaging translation.
All of the entries in your langfile will be successfully read. That doesn't mean there wasn't a typo so that a string that goes for attempted translation ends up not finding one (validating this is an NP Hard problem).
-
Server Crashes every time i interact with blocks
Gosh! It appears you are trying to access a client-side-only object from the server! If only I knew what because you didn't post any code. (Protip: learn what proxies are and how to use them)
-
[1.9] Forge API of some sort? [UNSOLVED + A few questions]
Cough. OreDictionary. Cough.
-
[1.9][SOLVED] Changing cursor icon to one of "standart" system icons
Odd, was the first result for me. Anyway, try this instead http://www.java-gaming.org/index.php?topic=26145.0
-
[1.9][SOLVED] Changing cursor icon to one of "standart" system icons
http://lmgtfy.com/?q=java+change+cursor First result http://stackoverflow.com/questions/7359189/how-to-change-the-mouse-cursor-in-java
-
[1.9] Forge API of some sort? [UNSOLVED + A few questions]
Vec3 either: a) still exists and you haven't imported it correctly b) been replaced with a differently named, but identical class (e.g. Vector3) If you look at the vanilla methods that used to return/take a Vec3 what are they taking now?
-
[1.8.9] Mob Break Blocks / Mobs Climb Over Each Other.
Agreed on the custom AI Task. You should poll the target block's hardness and compare to whatever tool the mob is using (if any, which includes "I want it to break as if it had an iron pickaxe") and then store the time spent breaking (look at the existing usages for getHardness to locate how vanilla/Forge calculates the time-to-break (or this section on the wiki)). When the task calculates that the block was broken, do the on-broken stuff (drop the block, replace it with air, etc.) Be sure to follow vanilla and Forge conventions so chests drop their items and so on. The series of calls are easily located using the find-references feature.
IPS spam blocked by CleanTalk.