Is it possible to make a crafting recipe that yields an enchanted item that isn't enchantable (For example put a stick and a diamond in a crafting table to make a sharpness 2 stick or something like that)?
I'm going to need to look through the documentation, and it might take me a while to be familiar with forge because there aren't many amazing tutorials on it, but I have a few in mind.
Forge is almost the exact same as modloader, you just install it differently. I use forge and all of your tutorials work for me. On of the things is that it doesn't limit ids and let's you create as many items/blocks as you want (it gets rid of the indexOutOfBounds error).
Forge is almost the exact same as modloader, you just install it differently. I use forge and all of your tutorials work for me. On of the things is that it doesn't limit ids and let's you create as many items/blocks as you want (it gets rid of the indexOutOfBounds error).
Well then if that's the case, forge will be quite easy to learn for me I heard it had it's own internal modloader, so it shouldn't be too different.
This is probally going to sound stupid, but i don't understand what i am going to add/remove from the PATH stuff...
Am i supposed to add this at the end: C:\Java\jdk1.7.0\bin;C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
Code:
package net.minecraft.src;
import java.util.Random;
public class mod_WoodUpgrader extends BaseMod
{
public mod_WoodUpgrader(int par1, int par2)
{
this.setCreativeTabs(CreativeTabs.tabTools);
}
public static final Item WoodUpgrader = new Item(5000).setItemName("WoodUpgrader");
public void load()
{
WoodUpgrader.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/WoodUpgrader.png");
== Recompiling server ==
> Cleaning bin
> Recompiling
All I'm trying to do right now is to create an item for my later complete mod.
The problem is that it wont allow me to add it to the creative inventory.
There is no other class that is tied with this one.
PLEASE HELP
Code:
package net.minecraft.src;
import java.util.Random;
public class mod_WoodUpgrader extends BaseMod
{
public mod_WoodUpgrader(int par1, int par2)
{
this.setCreativeTabs(CreativeTabs.tabTools);
}
public static final Item WoodUpgrader = new Item(5000).setItemName("WoodUpgrader");
public void load()
{
WoodUpgrader.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/WoodUpgrader.png");
== Recompiling server ==
> Cleaning bin
> Recompiling
All I'm trying to do right now is to create an item for my later complete mod.
The problem is that it wont allow me to add it to the creative inventory.
There is no other class that is tied with this one.
PLEASE HELP
Change this.setCreativeTabs(CreativeTabs.tabTools); to this.setCreativeTab(CreativeTabs.tabTools);
I am working on my first mod with modloader and mcp, and I successfully coded it without errors but when I went to run the test client, It crashed with the message, "Modloader has failed to initialize". Everything is up to date as i had just updated everything to 1.4.5. Here is the crash report...
Time: 11/20/12 6:23 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 4000
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Thread.java:722)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 958046776 bytes (913 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.5
mod_AdobeMod 1.4.5
Also I'm having a problem decompiling the minecraft.jar. I open decompile.bat, it says "Searching for javac.exe in C:\Program files", then it says
"!! java check FAILED !!
[Error 2] The system cannot find the file specified"
Plz help me!!
Rollback Post to RevisionRollBack
I reject your reality and substitute my own. Adam Savage, Mythbuster.
I need help using an item to place a block. I can't seem to figure it out.
Use the method onRightClick(), and have it execute when the item in your hand is != null, but is == to the item.id of your new item. Then, use getCursorPos() in order to spawnBlockAtPos().
I am working on my first mod with modloader and mcp, and I successfully coded it without errors but when I went to run the test client, It crashed with the message, "Modloader has failed to initialize". Everything is up to date as i had just updated everything to 1.4.5. Here is the crash report...
Time: 11/20/12 6:23 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 4000
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Thread.java:722)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 958046776 bytes (913 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.5
mod_AdobeMod 1.4.5
One of your items or blocks's ID is too high. It's the one that's 4000. Try 250
What is the code to add like a new projectile. I want my item to shoot fireballs
If you know, can you please say where i am going to put it(i think it is going to go under public void load())
All the code is/should be the same. It was for me. Just download the 1.4.4 version of MCP and Modloader....
Is it possible to make a crafting recipe that yields an enchanted item that isn't enchantable (For example put a stick and a diamond in a crafting table to make a sharpness 2 stick or something like that)?
All tutorials are now "updated" all you have to do is get the most recent .jar files/modloader/MCP and you're all set.
Check out my Minecraft Modding Tutorials!
Forge is almost the exact same as modloader, you just install it differently. I use forge and all of your tutorials work for me. On of the things is that it doesn't limit ids and let's you create as many items/blocks as you want (it gets rid of the indexOutOfBounds error).
Well then if that's the case, forge will be quite easy to learn for me I heard it had it's own internal modloader, so it shouldn't be too different.
Check out my Minecraft Modding Tutorials!
Only difference is the installation and the Apis and changes included
Am i supposed to add this at the end:
C:\Java\jdk1.7.0\bin;C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
package net.minecraft.src;
import java.util.Random;
public class mod_WoodUpgrader extends BaseMod
{
public mod_WoodUpgrader(int par1, int par2)
{
this.setCreativeTabs(CreativeTabs.tabTools);
}
public static final Item WoodUpgrader = new Item(5000).setItemName("WoodUpgrader");
public void load()
{
WoodUpgrader.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/WoodUpgrader.png");
ModLoader.addName(WoodUpgrader, "Wooden Upgrader");
}
public String getVersion()
{
return "1.4.4";
}
}
Error Report:
== MCP 7.22 (data: 7.22, client: 1.4.5, server: 1.4.5) ==
# 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.7.0_05\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_WoodUpgrader.java:7: error: cannot find symb
ol
this.setCreativeTabs(CreativeTabs.tabTools);
^
symbol: method setCreativeTabs(CreativeTabs)
1 error
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
All I'm trying to do right now is to create an item for my later complete mod.
The problem is that it wont allow me to add it to the creative inventory.
There is no other class that is tied with this one.
PLEASE HELP
This is a pretty good tutorial set. Just that you'll have to look into your own command properties.
Change this.setCreativeTabs(CreativeTabs.tabTools); to this.setCreativeTab(CreativeTabs.tabTools);
// I'm sorry, Dave.
Time: 11/20/12 6:23 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 4000
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1010)
at net.minecraft.src.ModLoader.init(ModLoader.java:983)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:92)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Thread.java:722)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 958046776 bytes (913 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.5
mod_AdobeMod 1.4.5
Also I'm having a problem decompiling the minecraft.jar. I open decompile.bat, it says "Searching for javac.exe in C:\Program files", then it says
"!! java check FAILED !!
[Error 2] The system cannot find the file specified"
Plz help me!!
I need help using an item to place a block. I can't seem to figure it out.
Use the method onRightClick(), and have it execute when the item in your hand is != null, but is == to the item.id of your new item. Then, use getCursorPos() in order to spawnBlockAtPos().
One of your items or blocks's ID is too high. It's the one that's 4000. Try 250
If you know, can you please say where i am going to put it(i think it is going to go under public void load())
Yes I put my wizardhood_1 in the armor folder.
Yes it is spelled correclty.
Here is my code:
import net.minecraft.client.Minecraft;
public class mod_BZArmor extends BaseMod
{
public static final Item WizardHood = (new ItemArmor(2201,EnumArmorMaterial.WIZARD ,ModLoader.addArmor("wizardhood_1"),0 ).setItemName("WizardHood"));
public void load()
{
WizardHood.iconIndex = ModLoader.addOverride("/gui/items.png", "/WizzardHood.png");
ModLoader.addName(WizardHood, "Wizard Hood");
}
public String Version()
{
return "1.4.5";
}
public String getVersion()
{
return "3.14159265";
}
}