Everything posted by sequituri
-
Block Texture Not Appearing
So, what version of Minecraft is this? Since you have a block ID, I know it aint 1.7.2
-
IItemRenderer not working
Did you even write your backpacks.render function to expect a an EntityLiving as it's argument. Since you are casting it down to Entity, I suspect that isn't true. The player in the EntityLiving, not the backpack. I'd suggest you use the object you get to get the held item, then render that with the view transformations of the player (1st argument). Maybe it should work as written, but I'd set a breakpoint there and see what is happening.
-
Possible to change BlockNames after release?
There are different names. There is the Icon Name, the Block registered name, and the unlocalized name. Each has a different purpose. There is even a display name. Which are you trying to change?
-
DecoderException: Packet was larger than I expected [1.7.2]
You need to learn how to use NBT storage properly, such as NBTTagList and NBTTagCompound and how to properly record counts for things you put in there. You cannot put arbitrary values in NBT tags and expect the receiver to know "know what you meant". It doesn't work that way. Check for typos. I doubt both the array/list and the map have the same # of elements.
-
[Forge 1.7.2-1046]Dimension Portal Bug
When coding in languages like C, C++, and Java, there is a distinct need to be absolutely precise in spelling, syntactic structure, capitalization, and practically in every other detail. No two computer program are alike and even if they look alike, the computer sees the details most people miss. Here's the think, the compiler is looking at every single character, one at a time - humans of every ilk read whole section of letters and numbers as a block of information. if you've seen those "cn u rd ths" posts on facebook then you know what I mean. We inherently see the similarities and assume they are the same. Now, everything someone says, "I copied it exactly," or "I typed it the same as they did," I suspect they missed something. What they don't understand, as I explained above, they are different and the computer sees it.
-
Forge error (Project 'Minecraft' is missing required library)
Me neither, I just followed the instructions on setting up a Forge project and I have no problems. Gradle manages the library dependencies and sources file locations automatically unless some fudges with the [Configure Build Path>] options.
-
[1.7.2]World Generation Not Working
SureenInk, Busti is referring to the Forge OreDictionary (i believe). If you are creating new ores, you would do well to register them in the Ore registry so other mods can use them in recipes, too. Or simply not have a conflict about it when there are more than 1 lead ores in the game.
-
Galacticraft Addon Error
Well, that other guy's code is crashing in the Preinit event handler. Since, it dies and never returns it causes you to crash. I see you are also experiencing a different crash now. Post the logs and I'll try to help.
-
weird reflection issue
Yes, but you said this. That will not work in any environment, obfuscated or not, should Forge not be installed. Hence, the try catch. If you want to work within the environment as provided, use the provided API for command handlers.
-
[1.7.2] how do I now use the logger
I use this, private static final Logger logger = LogManager.getFormatterLogger(MODID);
-
Item.onUpdate( ... int par4, boolean par5), what is par4 and par5?
Only on ClientSide: [*]player's World instance [*]the player instance [*]inventory slot # [*]true is above is the currently selected item
-
Eating a stack in shapeless crafting
First, that event is not cancellable. The item is crafted after the event returns. Second, the onPickupFromSlot() method that fires that event also decrements the stacksize by 1 for every item in the craftMatrix, so you need to use 1 less. Third, always call craftMatrix.getSizeInventory rather than using a hard coded number like 10 for your loop. You will sometimes get ArrayIndexOutOfBounds exception and crash otherwise. Last, I don't see you using the ICrafting interface. Of course, that may be too hard, but it is the only way to alter the crafting matrix (especially from the server side.)
-
weird reflection issue
try / catch block around the code and your good as gold.
-
[Solved] Block rendered as Item, crash when placed [1.7.2]
According to your crashlog, Item.getIdFromItem(this.field_151002_e) is returning with a -1 for the block ID for that ITEM. So, yeah your item in not registered with a block properly.
-
[1.7.2] Would this work? Some questions about modding
I concur with what TGG said, there are better ways to go about inventing the wheel that is already on cars, trucks, wagons, and moon rovers. Why not use what's already in Minecraft rather than risk killing servers, clients, breaking savegames, and many other hazards?
-
Using the ore dictionary in Recipes?
This is how I made my recipes. The word oreXxxxx is normally used for different ores. So, mine is checking for anything that matches my metals: oreTin, oreZinc, oreCopper, oreLead, oreNickle, etc. and using them to make similar recipes.
-
[SOLVED][1.6.4] Custom Axe for cut the whole tree
That repeatChop method is highly recursive and is prone to repeatedly check the same nine blocks up to 3 times each. Doing 18 times the amount of work it needs to.
-
[Forge 1.7.2-1046]Dimension Portal Bug
I knew you'd get it. Always look over the code you use to see what might not apply to you specific case and you win.
-
How to get enchant level & get id of weapon, which was attacked mob
Get the entity doing the damage and find the weapon they hold: [*]Get the type of damage [*]If damage instanceof EntityDamageSource [*] get ((EntityDamageSource)damageSource).getEntity().getHeldItem() [*] check for enchantments Read the nbtTagList from here: public NBTTagList ItemStack#getEnchantmentTagList() If the list has elements, they will be the enchantments
-
One set of Armor overwrites the rest...
It looks like your code is correct (which is not true, of course). The only guesses I can make is you have more than one ItemID class in different packages, and you import the wrong one.
-
One set of Armor overwrites the rest...
Well, to me it looks like your itemID's did not get set to the proper values, but you didn't include that code. Sorry, I cannot help you without knowing how that codes works (or in this case doesn't work.)
-
Not breaking with tool
That's nice of you to not bother learning how to code. I hope someone cares, because I give up on you.
-
How can you use your normal Minecraft Account in Eclipse?
Would you explain which ones, please? I only have this in my run config right now: --tweakClass cpw.mods.fml.common.launcher.FMLTweaker I suspect that I wasn't reading the board closely enough and missed it somewhere. [Never mind, sorry. I figured it out.]
-
Forge error (Project 'Minecraft' is missing required library)
That file is normally automatically resolved to the home/.gradle/cache file where gradle installs it. Why is it looking somewhere else now?
-
Cant get on certain servers
what is the class net.minecraft.src.Start for? I don't have that in my version. Is it something that you put in for coremods?
IPS spam blocked by CleanTalk.