GotoLink
Members-
Posts
2012 -
Joined
-
Last visited
-
Days Won
1
Everything posted by GotoLink
-
[Unsolved]Creative Tab NullPointerException when Rendering
GotoLink replied to ean521's topic in Modder Support
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. -
The ServerCustomPacketEvent has "handler" field, which you can cast to NetHandlerPlayServer, and from it, get the player entity.
-
-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
GotoLink replied to ean521's topic in Modder Support
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. -
Look into ItemBow. I am sure there is a registerIcons(IconRegister) method of interest.
-
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
-
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).
-
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.
-
You forgot to register the icons in your iconArray.
-
You stack the images vertically in a *.png, then add a *.png.mcmeta with the same name. { "animation": {} }
-
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.
-
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
GotoLink replied to CreativeMD's topic in Modder Support
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 ? -
EntityLivingBase#knockback(Entity, float, double, double)
-
[SOLVED] Mod Downgrading - NBT Data questions/problems
GotoLink replied to Bektor's topic in Modder Support
The method name probably changed. Search "getTag" or similar. -
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.
-
[1.7.2] [Solved] Custom Leaves always render transparent
GotoLink replied to SackCastellon's topic in Modder Support
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"?
GotoLink replied to HappleAcks's topic in Modder Support
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. -
buttonList.add(new GuiButton(...)); Used in all gui of the game. You could have searched a bit.
-
Follow the tutorials for basic block on the wiki.
-
@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?
GotoLink replied to saxon564's topic in Modder Support
Making a class extending IRecipe would be better than a crafting handler. -
The block you are trying to register is null.
-
[1.7.2] Player not spawning where I tell it to
GotoLink replied to acid1103's topic in Modder Support
You have a typo in while (!canCoordinateBeSpawn(chunkcoordinates.posX, chunkcoordinates.posY)); Should probably be chunkcoordinates.posZ.