Everything posted by Alexiy
-
A method which tells whether a blocks has GUI
I'd like to have a method which would tell if some block has a GUI associated with. It would be very helpful for my mod.
-
Get the block(or blocks nearby is ok) which player is looking at
I don't want to open Eclipse now to answer your question, but yes there is. Search for "trace" or "raytrace".
-
[HELP] Custom slot in inventory
I guess you are setting slot index same as the helmet slot index. Try setting a negative number.
-
Help with starting mod!!
Does manual import work?
-
Help! Can Still fly (in survival) once you take the armor allowing it off.
Would you place the code between ?
-
Vanilla base mod -> forge conversion
Mate, you should save your money - there are some open source mods that use ASM, e.g. Treecapitator, some of the AtomicStryker's mods. You also can search in GitHub. Would you tell what do you want to change?
-
1.6.2 Tile Entity Problems - [SOLVED]
You aren't allowed to use "x","y","z" entries. They are used for storing tile entity coordinates.
-
Item pickup help.
This is handled by Ipickupnotifier. One has to implement its only method which is called when an item gets into inventory. When done, register new instance of the class - GameRegistry.registerPickupHandler(new Blabla()).
-
Recompilation errors
Have you ran decompile.bat?
-
Burst fire gun / creating delay between shots
The way I made a delay: Item has a method onUpdate() which is called while the item is in da hotbar. I declared a global integer "timeElapsed". Then I wrote timeElapsed++ in the onUpdate() so it increases until a certain value reaches. Once the value is reached, the gun can shoot again, then timeElapsed is reset.
-
Magic Launcher issues with minecraft-forge-universal-1.6.2-9.10.0.803.jar
Don't use Magic launcher. Its magic isn't strong enough : )
-
About recompiling
I made separate projects for my mods. But I can't make recompile them.
-
Adding Custom Inventory slots
You can look onto Tinkers Construct source. It adds tabs in player inventory with additional slots without intervention.
-
Help Editing Vanilla Blocks and Items
I don't think that anything you mentioned is possible without bytecode modifications.
-
About recompiling
Isn't there a way to prevent recompile script from touching stuff that is excluded from build path in Eclipse? Also, can I make packages related to one mod to be in one folder? Can I make folders with textures appear in "reobf"?
-
My mod works in eclipse, but crashes in minecraft. Help?
Are you using reflection?
-
Some recompile errors with reflection
Eclipse doesn't complain about anything, but recompile.bat gives: == MCP 7.44 (data: 7.44, client: 1.5.1, server: 1.5.1) == # found ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csv, ast yle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Program Files\Java\jdk1.6.0_25\bin\javac" -encoding UTF-8 -Xlint:-options - deprecation -g -sourc...' failed : 1 == ERRORS FOUND == src\minecraft\notEnoghKnowledge\mod_NotEnoghKnowledge.java:86: inconvertible typ es found : java.lang.Object required: boolean boolean in=(boolean) isPointInRe gion.invoke(containerGui,slot.xDisplayPosition,slot.yDisplayPosition,16,16,mouse X,mouseY); ^ src\minecraft\notEnoghKnowledge\mod_NotEnoghKnowledge.java:121: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variabl e T with upper bounds int,java.lang.Object int damage=ModLoader.get PrivateValue(ItemSword.class, sword, 0); ^ src\minecraft\notEnoghKnowledge\mod_NotEnoghKnowledge.java:157: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variabl e T with upper bounds boolean,java.lang.Object boolean alwaysEdible=Mod Loader.getPrivateValue(ItemFood.class, food, 4); ^ 3 errors 15 warnings ================== !! Can not find server sources, try decompiling !! Press any key to continue . . .
-
Help please: Converting my mod to a forge mod
Reflection or ASM.
-
Turbo Model Thingy
Where can I look at it?
-
Thaumcraft 2 lets play.
Kind of inappropriate place to place playthrough.
IPS spam blocked by CleanTalk.