Alexiy
Forge Modder-
Posts
196 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Alexiy
-
I guess you are setting slot index same as the helmet slot index. Try setting a negative number.
-
Does manual import work?
-
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?
-
You aren't allowed to use "x","y","z" entries. They are used for storing tile entity coordinates.
-
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()).
-
Have you ran decompile.bat?
-
Burst fire gun / creating delay between shots
Alexiy replied to DerpenWolf's topic in Modder Support
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. -
I made separate projects for my mods. But I can't make recompile them.
-
You can look onto Tinkers Construct source. It adds tabs in player inventory with additional slots without intervention.
-
I don't think that anything you mentioned is possible without bytecode modifications.
-
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?
Alexiy replied to KeeganDeathman's topic in Modder Support
Are you using 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 . . .
-
Reflection or ASM.
-
Where can I look at it?
-
Kind of inappropriate place to place playthrough.