package net.minecraft.src; public class mod_AtlantisPillar extends BaseMod { //public static final Block nameHere = new BlockAtlantisPillar(160, 0).setBlockName("AtlantisPillar").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep); public void load() { BlockAtlantisPillar.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/atlantispillar.png"); ModLoader.registerBlock(BlockAtlantisPillar); ModLoader.addName(namehere, "Atlantian Pillar"); ModLoader.addRecipe(new ItemStack(BlockAtlantisPillar, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); } public String getVersion() { return "1.3.2"; } }
Now here is the code for BlockAtlantisPillar:
package net.minecraft.src; import java.util.Random; public class BlockAtlantisPillar extends Block { public BlockAtlantisPillar(int i, int j) { super(i, j, Material.wood); } public int idDropped(int i, Random random, int j) { return mod_AtlantisPillar.BlockAtlantisPillar.243; } public int quantityDropped(Random random) { return 1; } }
Just trying to make a block and item. The 9 of said item make the block. However, neither will show up on creative, but it isn't crashing. Is there anything wrong with my code?
package net.minecraft.src;
public class mod_Reiatsu extends BaseMod
{
public static final Item Reiatsu = new ItemReiatsu(5000).setItemName("Reiatsu");
public static final Block ReiatsuBlock = new BlockReiatsuBlock(137,0).setBlockName("Reiatsu Block").setHardness(5F).setResistance(30F).setLightValue(8F).setCreativeTab(CreativeTabs.tabBlock);
public void load ()
{
Reiatsu.iconIndex = ModLoader.addOverride("/gui/items/png", "/mods/reiatsu.png");
ModLoader.addName(Reiatsu, "Reiatsu");
ReiatsuBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/reiatsu_block.png");
ModLoader.registerBlock(ReiatsuBlock);
ModLoader.addName(ReiatsuBlock, "Reiatsu Block");
ModLoader.addRecipe(new ItemStack(ReiatsuBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Item.Reiatsu});
}
public String getVersion()
{
return "1.3.2";
}
}
Why are you using
Item.Reiatsu
? Your real item isn't declared in Item.java so don't reference to it being there. Make
Character.valueOf('#'), Item.Reiatsu});
into this
Character.valueOf('#'), Reiatsu});
and delete the variable you made for your item in Item.
package net.minecraft.src;
public class mod_AtlantisPillar extends BaseMod
{
//public static final Block nameHere = new BlockAtlantisPillar(160, 0).setBlockName("AtlantisPillar").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public void load()
{
BlockAtlantisPillar.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/atlantispillar.png");
ModLoader.registerBlock(BlockAtlantisPillar);
ModLoader.addName(namehere, "Atlantian Pillar");
ModLoader.addRecipe(new ItemStack(BlockAtlantisPillar, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.3.2";
}
}
Now here is the code for BlockAtlantisPillar:
package net.minecraft.src;
import java.util.Random;
public class BlockAtlantisPillar extends Block
{
public BlockAtlantisPillar(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_AtlantisPillar.BlockAtlantisPillar.243;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Post the error and use code tags for it and the code or I won't help. Using code tags helps me to help you.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Like when i try making a multi textured block The other textures dont show up
Code:
package net.minecraft.src;
import java.util.Random;
public class mod_*** extends BaseMod
{
public static final Block NetherLog = new BlockNetherLog(183,0)
.setStepSound(Block.soundWoodFootstep).setBlockName("NetherLog").setHardness(2.0F)
.setLightValue(0.250F);
public static int NetherLogBottom = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogBottom.png");
public static int NetherLogTop = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogTop.png");
public static int NetherLogSides = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogSides.png");
public void load()
{
NetherLog.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/NetherLogSides.png");
ModLoader.registerBlock(NetherLog);
ModLoader.addName(NetherLog, "Nether Log");
public String getVersion()
{
return " 1.3.2";
}
}
I have all of the textures loaded into my minecraft.jar
Like when i try making a multi textured block The other textures dont show up
Code:
package net.minecraft.src;
import java.util.Random;
public class mod_*** extends BaseMod
{
public static final Block NetherLog = new BlockNetherLog(183,0)
.setStepSound(Block.soundWoodFootstep).setBlockName("NetherLog").setHardness(2.0F)
.setLightValue(0.250F);
public static int NetherLogBottom = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogBottom.png");
public static int NetherLogTop = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogTop.png");
public static int NetherLogSides = ModLoader.addOverride("/terrain.png",
"/textures/NetherLogSides.png");
public void load()
{
NetherLog.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/NetherLogSides.png");
ModLoader.registerBlock(NetherLog);
ModLoader.addName(NetherLog, "Nether Log");
public String getVersion()
{
return " 1.3.2";
}
}
I have all of the textures loaded into my minecraft.jar
Please help, thanks
You need the block class as well.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I got a problem with the custom item smelting. When I put "ModLoader.addSmelting(EridiumOre.shiftedIndex, new ItemStack(ingotEridium, 1), 1.0F); " I get an error which is:
# 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_07\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Eridium.java:22: error: cannot find symbol
ModLoader.addSmelting(EridiumOre.shiftedIndex, n
ew ItemStack(ingotEridium, 1), 1.0F);
^
symbol: variable shiftedIndex
location: variable EridiumOre of type Block
1 error
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
- Done in 5.60 seconds
Press any key to continue . . .
mod_Eridium
package net.minecraft.src;
public class mod_Eridium extends BaseMod
{
public static final Block EridiumOre = new EridiumOre(150, 0).setBlockName("EridiumOre").setHardness(4F).setResistance(8F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Block EridiumBlock = new EridiumBlock(151, 0).setBlockName("EridiumBlock").setHardness(5F).setResistance(6F).setLightValue(1F);
public static final Item ingotEridium= new ingotEridium(152).setItemName("ingotEridium");
public void load()
{
EridiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumOre.png");
ModLoader.registerBlock(EridiumOre);
ModLoader.addName(EridiumOre, "Eridium Ore");
ModLoader.addRecipe(new ItemStack(EridiumOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
EridiumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumBlock.png");
ModLoader.registerBlock(EridiumBlock);
ModLoader.addName(EridiumBlock, "Eridium Block");
ModLoader.addRecipe(new ItemStack(EridiumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Item.ingotEridium});
ingotEridium.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/ingotEridium.png");
ModLoader.addName(ingotEridium, "Eridium Ingot");
ModLoader.addSmelting(EridiumOre.shiftedIndex, new ItemStack(ingotEridium, 1), 1.0F);
}
public String getVersion()
{
return "1.3.2";
}
}
I got a problem with the custom item smelting. When I put "ModLoader.addSmelting(EridiumOre.shiftedIndex, new ItemStack(ingotEridium, 1), 1.0F); " I get an error which is:
# 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_07\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Eridium.java:22: error: cannot find symbol
ModLoader.addSmelting(EridiumOre.shiftedIndex, n
ew ItemStack(ingotEridium, 1), 1.0F);
^
symbol: variable shiftedIndex
location: variable EridiumOre of type Block
1 error
==================
== Recompiling server ==
> Cleaning bin
> Recompiling
- Done in 5.60 seconds
Press any key to continue . . .
mod_Eridium
package net.minecraft.src;
public class mod_Eridium extends BaseMod
{
public static final Block EridiumOre = new EridiumOre(150, 0).setBlockName("EridiumOre").setHardness(4F).setResistance(8F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public static final Block EridiumBlock = new EridiumBlock(151, 0).setBlockName("EridiumBlock").setHardness(5F).setResistance(6F).setLightValue(1F);
public static final Item ingotEridium= new ingotEridium(152).setItemName("ingotEridium");
public void load()
{
EridiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumOre.png");
ModLoader.registerBlock(EridiumOre);
ModLoader.addName(EridiumOre, "Eridium Ore");
ModLoader.addRecipe(new ItemStack(EridiumOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
EridiumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumBlock.png");
ModLoader.registerBlock(EridiumBlock);
ModLoader.addName(EridiumBlock, "Eridium Block");
ModLoader.addRecipe(new ItemStack(EridiumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Item.ingotEridium});
ingotEridium.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/ingotEridium.png");
ModLoader.addName(ingotEridium, "Eridium Ingot");
ModLoader.addSmelting(EridiumOre.shiftedIndex, new ItemStack(ingotEridium, 1), 1.0F);
}
public String getVersion()
{
return "1.3.2";
}
}
Blocks use blockID instead of shiftedIndex.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
EDIT- The last error was fixed, but now this glitch happens randomly, I assume it happens when the thing spawns, it gives a massive list of all the entities and items and stuff then it just says this.
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 71718bdf ----------
The method registerBlock(BlockPane) in the type ModLoader is not applicable for the arguments
(Block)
and when I have
ModLoader.addRecipe(new ItemStack(.......
Then I get this
The method addRecipe(EnumToolMaterial, Object...) in the type ModLoader is not applicable for the
arguments (ItemStack, Object[])
The blocks won't show up in the game whenever this is there... What am I doing wrong?
If you want the whole code,
package net.minecraft.src;
public class mod_Reiatsu extends BaseMod
{
public static final Item Reiatsu = new ItemReiatsu(5000).setItemName("Reiatsu");
public static final Block ReiatsuBlock = new BlockReiatsuBlock(137,0).setBlockName("Reiatsu Block").setHardness(5F).setResistance(30F).setLightValue(8F).setCreativeTab(CreativeTabs.tabBlock);
public void load ()
{
Reiatsu.iconIndex = ModLoader.addOverride("/gui/items/png", "/mods/reiatsu.png");
ModLoader.addName(Reiatsu, "Reiatsu");
ReiatsuBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/reiatsu_block.png");
ModLoader.registerBlock(ReiatsuBlock);
ModLoader.addName(ReiatsuBlock, "Reiatsu Block");
ModLoader.addRecipe(new ItemStack(ReiatsuBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Reiatsu});
}
public String getVersion()
{
return "1.3.2";
}
}
You're trying do define an item and block in the same class, I'm sure it's possible but at this point you may want to define them in different classes.
You're trying do define an item and block in the same class, I'm sure it's possible but at this point you may want to define them in different classes.
Yeah, I had them separate, but I put them together just because. Even when they were separate though, neither the item nor the block would show up...
You're trying do define an item and block in the same class, I'm sure it's possible but at this point you may want to define them in different classes.
No, no and no. You shouldn't have more than one mod_ prefixed class for any reason at any point in the creation of a mod.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I posted it above, but no1 really helped, so I was wondering if anyone could now. I used to NPC thing for 1.3.2 and I changed a little bit of code, It worked and I made the skin and everything, but randomly the game would crash (I assume when it would spawn) and gave a massive entity list and the this.
java.lang.NullPointerException at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747) at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137) at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73) at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91) at net.minecraft.src.WorldClient.tick(WorldClient.java:63) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830) at net.minecraft.client.Minecraft.run(Minecraft.java:760) at java.lang.Thread.run(Thread.java:680) --- END ERROR REPORT 71718bdf ----------
I posted it above, but no1 really helped, so I was wondering if anyone could now. I used to NPC thing for 1.3.2 and I changed a little bit of code, It worked and I made the skin and everything, but randomly the game would crash (I assume when it would spawn) and gave a massive entity list and the this.
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 71718bdf ----------
?????
The NPC tutorial is slightly hidden for a reason. I am not providing any help with it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Thank you very much!!
i need help again
ive made an item called beans, and i want it to smelt into baked beans (lol ) and it doesnt seem to be working... here is the code:
ModLoader.addSmelting(Beans.iconIndex, new ItemStack(BakedBeans, 1), 0.4F);
it isnt working whatso ever... i put it in the furnace and nothing happens please help...
You need to change the Beans.iconIndex to Beans.shiftedIndex. What you're doing is calling an integer but it's the icon index's integer. shiftedIndex returns the item's representational integer.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
How do I add a custom block to the biome code? because I kept getting this error report, and when I put the block's Id under 127, I still got an error, what should I do?
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\Josh\Desktop\The Runic Mod\Files\Files from MCP\jars\.\crash-reports\crash-2012-10-11_07.30.00-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 6de0704c --------
Generated 10/11/12 7:30 AM
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 955295488 bytes (911 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 8
ModLoader 1.3.2
mod_AppleOfLight 1.3.2
mod_CandyCrystal 1.3.2
mod_CandyCrystalRed 1.3.2
mod_ChickenBanHammer 1.3.1
mod_CreeperBerry 1.3.2
mod_CreeperBerryBush 1.3.2
mod_DragonCorruption 1.3.2
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:378)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1369)
at net.minecraft.src.ModLoader.init(ModLoader.java:944)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.minecraft.src.BoimeGenDragonCorruption.<init>(BoimeGenDragonCorruption.java:8)
at net.minecraft.src.mod_DragonCorruptionBoime.<clinit>(mod_DragonCorruptionBoime.java:4)
... 15 more
--- END ERROR REPORT d48667ca ----------
Yet there is no mistakes at all,
ad there is something about this too.
27 achievements
195 recipes
Setting user: Player900, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.3.2 Initializing...
Mod Initialized: mod_AppleOfLight 1.3.2
Mod Initialized: mod_CandyCrystal 1.3.2
Mod Initialized: mod_CandyCrystalRed 1.3.2
CONFLICT @ 2006
Mod Initialized: mod_ChickenBanHammer 1.3.1
Mod Initialized: mod_CreeperBerry 1.3.2
Mod Initialized: mod_CreeperBerryBush 1.3.2
Overriding /terrain.png with /DragonCorrputionDirt.png @ 26. 31 left.
Overriding /terrain.png with /DragonCorruption.png @ 27. 30 left.
Overriding /terrain.png with /DragonCorruptionGrass.png @ 41. 29 left.
Mod Initialized: mod_DragonCorruption 1.3.2
[color=#ff0000]Failed to load mod from "mod_DragonCorruptionBoime.class"[/color]
Mod Initialized: mod_FireRubyDust 1.3.2
Mod Initialized: mod_FireRubyOre 1.3.2
Mod Initialized: mod_GravitestCrystal 1.3.2
Mod Initialized: mod_GravitestOre 1.3.2
Mod Initialized: mod_MBlueS 1.3.1
Mod Initialized: mod_MGS 1.3.1
Mod Initialized: mod_MRedS 1.3.1
Mod Initialized: mod_MYellowS 1.3.1
Mod Initialized: mod_MythicStoneBlack 1.3.1
Mod Initialized: mod_Orange 1.3.2
Mod Initialized: mod_runic 1.3.2
Mod Initialized: mod_RunicGem 1.3.2
Mod Initialized: mod_RunicOre 1.3.2
CONFLICT @ 2000
CONFLICT @ 2001
CONFLICT @ 2002
CONFLICT @ 2003
CONFLICT @ 2004
CONFLICT @ 5000
Mod Initialized: mod_RunicTools 1.3.1
Overriding /gui/items.png with /AppleOfHealth.png @ 38. 80 left.
Mod Loaded: mod_AppleOfLight 1.3.2
Overriding /terrain.png with /CandyCrystalOre.png @ 42. 28 left.
Mod Loaded: mod_CandyCrystal 1.3.2
Overriding /gui/items.png with /RedCandyCrystal.png @ 102. 79 left.
Mod Loaded: mod_CandyCrystalRed 1.3.2
Overriding /gui/items.png with /ChickenHammer.png @ 118. 78 left.
Mod Loaded: mod_ChickenBanHammer 1.3.1
Overriding /gui/items.png with /CreeperBerry.png @ 119. 77 left.
Overriding /gui/items.png with /CreeperBerryseed.png @ 120. 76 left.
Mod Loaded: mod_CreeperBerry 1.3.2
Overriding /terrain.png with /CreeperBerryBush.png @ 57. 27 left.
Mod Loaded: mod_CreeperBerryBush 1.3.2
Overriding /terrain.png with /DragonCorruption4.png @ 58. 26 left.
Mod Loaded: mod_DragonCorruption 1.3.2
Overriding /gui/items.png with /FireRubyDust.png @ 134. 75 left.
Overriding /gui/items.png with /FireRubyIngot.png @ 144. 74 left.
Mod Loaded: mod_FireRubyDust 1.3.2
Overriding /terrain.png with /FireRubyOre.png @ 184. 25 left.
Mod Loaded: mod_FireRubyOre 1.3.2
Overriding /gui/items.png with /GravitestCrystal.png @ 145. 73 left.
Mod Loaded: mod_GravitestCrystal 1.3.2
Overriding /terrain.png with /GravitestOre.png @ 185. 24 left.
Mod Loaded: mod_GravitestOre 1.3.2
Overriding /terrain.png with /MysticStoneOreBlue.png @ 186. 23 left.
Mod Loaded: mod_MBlueS 1.3.1
Overriding /terrain.png with /MGOS.png @ 187. 22 left.
Mod Loaded: mod_MGS 1.3.1
Overriding /terrain.png with /MysticStoneOreRed.png @ 188. 21 left.
Mod Loaded: mod_MRedS 1.3.1
Overriding /terrain.png with /MysticStoneOreYellow.png @ 189. 20 left.
Mod Loaded: mod_MYellowS 1.3.1
Overriding /terrain.png with /MBOS.png @ 190. 19 left.
Mod Loaded: mod_MythicStoneBlack 1.3.1
Overriding /gui/items.png with /Orange.png @ 146. 72 left.
Mod Loaded: mod_Orange 1.3.2
Mod Loaded: mod_runic 1.3.2
Overriding /gui/items.png with /RunicGem.png @ 147. 71 left.
Mod Loaded: mod_RunicGem 1.3.2
Overriding /terrain.png with /RunicOre.png @ 191. 18 left.
Mod Loaded: mod_RunicOre 1.3.2
Overriding /gui/items.png with /RunicPickAxe.png @ 148. 70 left.
Overriding /gui/items.png with /RunicAxe.png @ 149. 69 left.
Overriding /gui/items.png with /RunicShovel.png @ 150. 68 left.
Overriding /gui/items.png with /RunicSword.png @ 152. 67 left.
Overriding /gui/items.png with /RunicHoe.png @ 160. 66 left.
Overriding /gui/items.png with /RunicGem.png @ 161. 65 left.
Mod Loaded: mod_RunicTools 1.3.1
Done.
16845022 is not a valid stat
16910558 is not a valid stat
CHECKSUM MISMATCH
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
Stopping!
SoundSystem shutting down...
Author: Paul Lamb, www.paulscode.com
Ok, is there anywhere you know of I can find a WORKING 1.3.2 mob tutorial?
Ps. Can you at least tell me whats causing the NPE?
Take a look at this thread: http://www.minecraft...-entity-problem
it should tell you all the stuff you need to know, and you could make a working entity with the info there, but it's not really a tutorial.
How do I add a custom block to the biome code? because I kept getting this error report, and when I put the block's Id under 127, I still got an error, what should I do?
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\Josh\Desktop\The Runic Mod\Files\Files from MCP\jars\.\crash-reports\crash-2012-10-11_07.30.00-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 6de0704c --------
Generated 10/11/12 7:30 AM
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 955295488 bytes (911 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 8
ModLoader 1.3.2
mod_AppleOfLight 1.3.2
mod_CandyCrystal 1.3.2
mod_CandyCrystalRed 1.3.2
mod_ChickenBanHammer 1.3.1
mod_CreeperBerry 1.3.2
mod_CreeperBerryBush 1.3.2
mod_DragonCorruption 1.3.2
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:378)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1369)
at net.minecraft.src.ModLoader.init(ModLoader.java:944)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.minecraft.src.BoimeGenDragonCorruption.<init>(BoimeGenDragonCorruption.java:8)
at net.minecraft.src.mod_DragonCorruptionBoime.<clinit>(mod_DragonCorruptionBoime.java:4)
... 15 more
--- END ERROR REPORT d48667ca ----------
Yet there is no mistakes at all,
ad there is something about this too.
27 achievements
195 recipes
Setting user: Player900, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.3.2 Initializing...
Mod Initialized: mod_AppleOfLight 1.3.2
Mod Initialized: mod_CandyCrystal 1.3.2
Mod Initialized: mod_CandyCrystalRed 1.3.2
CONFLICT @ 2006
Mod Initialized: mod_ChickenBanHammer 1.3.1
Mod Initialized: mod_CreeperBerry 1.3.2
Mod Initialized: mod_CreeperBerryBush 1.3.2
Overriding /terrain.png with /DragonCorrputionDirt.png @ 26. 31 left.
Overriding /terrain.png with /DragonCorruption.png @ 27. 30 left.
Overriding /terrain.png with /DragonCorruptionGrass.png @ 41. 29 left.
Mod Initialized: mod_DragonCorruption 1.3.2
[color=#ff0000]Failed to load mod from "mod_DragonCorruptionBoime.class"[/color]
Mod Initialized: mod_FireRubyDust 1.3.2
Mod Initialized: mod_FireRubyOre 1.3.2
Mod Initialized: mod_GravitestCrystal 1.3.2
Mod Initialized: mod_GravitestOre 1.3.2
Mod Initialized: mod_MBlueS 1.3.1
Mod Initialized: mod_MGS 1.3.1
Mod Initialized: mod_MRedS 1.3.1
Mod Initialized: mod_MYellowS 1.3.1
Mod Initialized: mod_MythicStoneBlack 1.3.1
Mod Initialized: mod_Orange 1.3.2
Mod Initialized: mod_runic 1.3.2
Mod Initialized: mod_RunicGem 1.3.2
Mod Initialized: mod_RunicOre 1.3.2
CONFLICT @ 2000
CONFLICT @ 2001
CONFLICT @ 2002
CONFLICT @ 2003
CONFLICT @ 2004
CONFLICT @ 5000
Mod Initialized: mod_RunicTools 1.3.1
Overriding /gui/items.png with /AppleOfHealth.png @ 38. 80 left.
Mod Loaded: mod_AppleOfLight 1.3.2
Overriding /terrain.png with /CandyCrystalOre.png @ 42. 28 left.
Mod Loaded: mod_CandyCrystal 1.3.2
Overriding /gui/items.png with /RedCandyCrystal.png @ 102. 79 left.
Mod Loaded: mod_CandyCrystalRed 1.3.2
Overriding /gui/items.png with /ChickenHammer.png @ 118. 78 left.
Mod Loaded: mod_ChickenBanHammer 1.3.1
Overriding /gui/items.png with /CreeperBerry.png @ 119. 77 left.
Overriding /gui/items.png with /CreeperBerryseed.png @ 120. 76 left.
Mod Loaded: mod_CreeperBerry 1.3.2
Overriding /terrain.png with /CreeperBerryBush.png @ 57. 27 left.
Mod Loaded: mod_CreeperBerryBush 1.3.2
Overriding /terrain.png with /DragonCorruption4.png @ 58. 26 left.
Mod Loaded: mod_DragonCorruption 1.3.2
Overriding /gui/items.png with /FireRubyDust.png @ 134. 75 left.
Overriding /gui/items.png with /FireRubyIngot.png @ 144. 74 left.
Mod Loaded: mod_FireRubyDust 1.3.2
Overriding /terrain.png with /FireRubyOre.png @ 184. 25 left.
Mod Loaded: mod_FireRubyOre 1.3.2
Overriding /gui/items.png with /GravitestCrystal.png @ 145. 73 left.
Mod Loaded: mod_GravitestCrystal 1.3.2
Overriding /terrain.png with /GravitestOre.png @ 185. 24 left.
Mod Loaded: mod_GravitestOre 1.3.2
Overriding /terrain.png with /MysticStoneOreBlue.png @ 186. 23 left.
Mod Loaded: mod_MBlueS 1.3.1
Overriding /terrain.png with /MGOS.png @ 187. 22 left.
Mod Loaded: mod_MGS 1.3.1
Overriding /terrain.png with /MysticStoneOreRed.png @ 188. 21 left.
Mod Loaded: mod_MRedS 1.3.1
Overriding /terrain.png with /MysticStoneOreYellow.png @ 189. 20 left.
Mod Loaded: mod_MYellowS 1.3.1
Overriding /terrain.png with /MBOS.png @ 190. 19 left.
Mod Loaded: mod_MythicStoneBlack 1.3.1
Overriding /gui/items.png with /Orange.png @ 146. 72 left.
Mod Loaded: mod_Orange 1.3.2
Mod Loaded: mod_runic 1.3.2
Overriding /gui/items.png with /RunicGem.png @ 147. 71 left.
Mod Loaded: mod_RunicGem 1.3.2
Overriding /terrain.png with /RunicOre.png @ 191. 18 left.
Mod Loaded: mod_RunicOre 1.3.2
Overriding /gui/items.png with /RunicPickAxe.png @ 148. 70 left.
Overriding /gui/items.png with /RunicAxe.png @ 149. 69 left.
Overriding /gui/items.png with /RunicShovel.png @ 150. 68 left.
Overriding /gui/items.png with /RunicSword.png @ 152. 67 left.
Overriding /gui/items.png with /RunicHoe.png @ 160. 66 left.
Overriding /gui/items.png with /RunicGem.png @ 161. 65 left.
Mod Loaded: mod_RunicTools 1.3.1
Done.
16845022 is not a valid stat
16910558 is not a valid stat
CHECKSUM MISMATCH
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
Stopping!
SoundSystem shutting down...
Author: Paul Lamb, www.paulscode.com
Declare the block before the biome. There are no ids remaining under 127 in 1.3.2 but they may have fixed the decorating issue.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
==================
Here is the code for mod_AtlantisPillar:
package net.minecraft.src;
public class mod_AtlantisPillar extends BaseMod
{
//public static final Block nameHere = new BlockAtlantisPillar(160, 0).setBlockName("AtlantisPillar").setHardness(3F).setResistance(4F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public void load()
{
BlockAtlantisPillar.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/atlantispillar.png");
ModLoader.registerBlock(BlockAtlantisPillar);
ModLoader.addName(namehere, "Atlantian Pillar");
ModLoader.addRecipe(new ItemStack(BlockAtlantisPillar, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.3.2";
}
}
Now here is the code for BlockAtlantisPillar:
package net.minecraft.src;
import java.util.Random;
public class BlockAtlantisPillar extends Block
{
public BlockAtlantisPillar(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_AtlantisPillar.BlockAtlantisPillar.243;
}
public int quantityDropped(Random random)
{
return 1;
}
}
?
Why are you using ? Your real item isn't declared in Item.java so don't reference to it being there. Make
Character.valueOf('#'), Item.Reiatsu});into this
Character.valueOf('#'), Reiatsu});and delete the variable you made for your item in Item.
Post the error and use code tags for it and the code or I won't help. Using code tags helps me to help you.
together they are powerful beyond imagination."
Like when i try making a multi textured block The other textures dont show up
Code:
package net.minecraft.src; import java.util.Random; public class mod_*** extends BaseMod { public static final Block NetherLog = new BlockNetherLog(183,0) .setStepSound(Block.soundWoodFootstep).setBlockName("NetherLog").setHardness(2.0F) .setLightValue(0.250F); public static int NetherLogBottom = ModLoader.addOverride("/terrain.png", "/textures/NetherLogBottom.png"); public static int NetherLogTop = ModLoader.addOverride("/terrain.png", "/textures/NetherLogTop.png"); public static int NetherLogSides = ModLoader.addOverride("/terrain.png", "/textures/NetherLogSides.png"); public void load() { NetherLog.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/NetherLogSides.png"); ModLoader.registerBlock(NetherLog); ModLoader.addName(NetherLog, "Nether Log"); public String getVersion() { return " 1.3.2"; } }Please help, thanks
You need the block class as well.
together they are powerful beyond imagination."
mod_Eridium
package net.minecraft.src; public class mod_Eridium extends BaseMod { public static final Block EridiumOre = new EridiumOre(150, 0).setBlockName("EridiumOre").setHardness(4F).setResistance(8F).setLightValue(1F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep); public static final Block EridiumBlock = new EridiumBlock(151, 0).setBlockName("EridiumBlock").setHardness(5F).setResistance(6F).setLightValue(1F); public static final Item ingotEridium= new ingotEridium(152).setItemName("ingotEridium"); public void load() { EridiumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumOre.png"); ModLoader.registerBlock(EridiumOre); ModLoader.addName(EridiumOre, "Eridium Ore"); ModLoader.addRecipe(new ItemStack(EridiumOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); EridiumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/EridiumBlock.png"); ModLoader.registerBlock(EridiumBlock); ModLoader.addName(EridiumBlock, "Eridium Block"); ModLoader.addRecipe(new ItemStack(EridiumBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Item.ingotEridium}); ingotEridium.iconIndex = ModLoader.addOverride("/gui/items.png", "/mods/ingotEridium.png"); ModLoader.addName(ingotEridium, "Eridium Ingot"); ModLoader.addSmelting(EridiumOre.shiftedIndex, new ItemStack(ingotEridium, 1), 1.0F); } public String getVersion() { return "1.3.2"; } }Blocks use blockID instead of shiftedIndex.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBut how do I add my own custom potion?
Or a potion recipe for existing items? For example, put a diamond in the brewing stand, and get bottle o enchanting out, for example?
My Released Mods
Twitter
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 71718bdf ----------
?????
it comes up with this error:
and when I have
Then I get this
The blocks won't show up in the game whenever this is there... What am I doing wrong?
If you want the whole code,
package net.minecraft.src; public class mod_Reiatsu extends BaseMod { public static final Item Reiatsu = new ItemReiatsu(5000).setItemName("Reiatsu"); public static final Block ReiatsuBlock = new BlockReiatsuBlock(137,0).setBlockName("Reiatsu Block").setHardness(5F).setResistance(30F).setLightValue(8F).setCreativeTab(CreativeTabs.tabBlock); public void load () { Reiatsu.iconIndex = ModLoader.addOverride("/gui/items/png", "/mods/reiatsu.png"); ModLoader.addName(Reiatsu, "Reiatsu"); ReiatsuBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/mods/reiatsu_block.png"); ModLoader.registerBlock(ReiatsuBlock); ModLoader.addName(ReiatsuBlock, "Reiatsu Block"); ModLoader.addRecipe(new ItemStack(ReiatsuBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Reiatsu}); } public String getVersion() { return "1.3.2"; } }Bleach Mod
You're trying do define an item and block in the same class, I'm sure it's possible but at this point you may want to define them in different classes.
Yeah, I had them separate, but I put them together just because. Even when they were separate though, neither the item nor the block would show up...
Bleach Mod
No, no and no. You shouldn't have more than one mod_ prefixed class for any reason at any point in the creation of a mod.
together they are powerful beyond imagination."
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1769)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:830)
at net.minecraft.client.Minecraft.run(Minecraft.java:760)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 71718bdf ----------
?????
The NPC tutorial is slightly hidden for a reason. I am not providing any help with it.
together they are powerful beyond imagination."
Ps. Can you at least tell me whats causing the NPE?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffHe knows. It's not him. It may be a ModLoader error or biome decorator issue.
The flower code is not broken, just the generation "for" loop (you can still add flowers but they are not going to generate at the moment).
You need to change the Beans.iconIndex to Beans.shiftedIndex. What you're doing is calling an integer but it's the icon index's integer. shiftedIndex returns the item's representational integer.
Yet there is no mistakes at all,
ad there is something about this too.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTake a look at this thread:
http://www.minecraft...-entity-problem
it should tell you all the stuff you need to know, and you could make a working entity with the info there, but it's not really a tutorial.
Declare the block before the biome. There are no ids remaining under 127 in 1.3.2 but they may have fixed the decorating issue.
together they are powerful beyond imagination."