Everything posted by GotoLink
-
[Unsolved]Creative Tab NullPointerException when Rendering
You may want to check that Eancraft.eanOre is really not null. Use a breakpoint if possible. The creative tab also needs at least an item or block to render inside its slots.
-
[SOLVED][1.7.2]Packet Handling problem.
The ServerCustomPacketEvent has "handler" field, which you can cast to NetHandlerPlayServer, and from it, get the player entity.
-
[1.6.4] [UNSOLVED] Biome will crash game
-Use FMLPreInitializationEvent -Use Configuration#getTerrainBlock() to get free block id for terrain/biome blocks (they need to be cast to byte, which kinda breaks with your current default id)
-
[Unsolved]Creative Tab NullPointerException when Rendering
return Item.getItemFromBlock(new EanOre(Material.rock)); You need to return a registered item or block. That new stuff isn't registered, Minecraft can't render it. Replace with an instance you made and registered in the FMLPreInitialization event.
-
[1.6.4] -=[Solved]=- Bow crash
Look into ItemBow. I am sure there is a registerIcons(IconRegister) method of interest.
-
[1.7.2] setHarvestLevel Issues?
Material.glass can be harvested without any tool. There are at least two solutions: -replace this material with an equivalent material, but with setRequiresTool() in its definition [you can make a new Material, if necessary) -override Block#canHarvestBlock(EntityPlayer, int) to check the tool level instead
-
[SOLVED][1.7.2]Packet Handling problem.
Minecraft class is the client. You can't call it on the server side code. You also need to compare String with Object#equals(Object).
-
this.mc.mcProfiler.endStartSection hooks
Well...it is the profiler. The server profiler can be stopped by the debug command. It also doesn't pass any variable at all. Apart from the profiler timing stuff, you'll have nothing to work on for your event.
-
[1.6.4] -=[Solved]=- Bow crash
You forgot to register the icons in your iconArray.
-
[1.7.2] Animated block texture?
You stack the images vertically in a *.png, then add a *.png.mcmeta with the same name. { "animation": {} }
-
MCreator frustration
You have just hit the point where a code generator will always fail. There is no progression curve. You can't fix something you have no control of. You can't make things that weren't anticipated by the real guy who did the coding. Even if the author solve the issue for you, you won't feel the satisfaction of having it done by yourself. All "coding ace" started at the same point, knowing nothing. Making progress feels the best, I tell you.
-
[1.7.2] Run another mod in dev environment
If you have the API sources in src/main/java, they will be included by default in the gradle build. You can change this by editing the build.gradle file. jar{ exclude 'external/api/*.class' } A different take on this is nicely detailed in coolAlias tutorial.
-
1.6.4 CoreMod - Patching Minecraft.class - Error: Unable to launch
I don't think you need to replace the entire Minecraft class to do this. Learning to use ASM would help you immensely. if (arg0.equals("cpw.mods.fml.common.LoadController")) { System.out.println("********* INSIDE OBFUSCATED MINECRAFTLOADER TRANSFORMER ABOUT TO PATCH: " + arg0); Why patching this ? You didn't realize this is a FML class ?
-
[1.6.4] Mob Knockback?
EntityLivingBase#knockback(Entity, float, double, double)
-
[SOLVED] Mod Downgrading - NBT Data questions/problems
The method name probably changed. Search "getTag" or similar.
-
[1.7.2] Upgrading errors
GameRegistry.addShapedRecipe(new ItemStack(itemObsidianIngot), new Object[]{"#X#", "XXX", "#X#", 'X', itemObsidianFlake}); That recipe is incomplete. You are defining only one component. Also, you should use capital as first letters for classes names.
-
[SOLVED][1.7.2]What exactly is mask argument of setMutexBits() in AI tasks?
See EntityAITasks#areTasksCompatible(EntityAITaskEntry, EntityAITaskEntry) , itself called by EntityAITasks#canUse(EntityAITaskEntry). The javadoc is roughly right.
-
[1.7.2] [Solved] Custom Leaves always render transparent
Minecraft still has that call for the "fancy" setting, in BlockLeaves (setGraphicsLevel), which only applies to vanilla leaves, sadly. Basically, before returning the IIcon for your block, do setGraphicsLevel(Minecraft.getMinecraft().gameSettings.fancyGraphics) , then return the corresponding IIcon. And for my sake, please deobfuscate your code.
-
How to an item that has a second inventory, like a "pouch"?
You can make an item like an inventory by reading/writing to its ItemStack.stackTagCompound, the same way as chests and furnaces do with their readFromNBT, writeToNBT methods.
-
[1.6.4] Edit MainMenu
buttonList.add(new GuiButton(...)); Used in all gui of the game. You could have searched a bit.
-
Why can't i smelt my own Ore ?
Follow the tutorials for basic block on the wiki.
-
[1.7.2] Returning Command Usage
@Override public int compareTo(Object o) { return 0; } This is horribly wrong. Look into CommandBase at least before making your own command.
-
[1.7.2] Using the Ore Dictionary in Crafting Recipes?
Making a class extending IRecipe would be better than a crafting handler.
-
[1.6.4]My fluid keeps crashing the game
The block you are trying to register is null.
-
[1.7.2] Player not spawning where I tell it to
You have a typo in while (!canCoordinateBeSpawn(chunkcoordinates.posX, chunkcoordinates.posY)); Should probably be chunkcoordinates.posZ.
IPS spam blocked by CleanTalk.