I've been playing better than wolves for the past couple of days and enjoying it. It's fun building things like windmills and the like, but I hate farming hemp... it just takes too long.
I really enjoyed the building aspect of the mod, but the tedious farming turned me off. Are there any mods that encourage the building of structures or reward you for it? I really like the building aspect of the game much more than the survival.
I just downloaded the 1.0.0 MCP pack, updated my mod, and put in this new function "public void load()" into my mod_EMod file.
Now when I try to run the game I get:
ModLoader 1.0.0 Initializing...
Overriding /terrain.png with /GoldSapTextures/GoldenLeaves.png @ 30. 44 left.
Failed to load mod from "mod_EMod.class"
Done.
Here's the error:
Minecraft: Minecraft 1.0.0
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4670 OpenGL Engine version 2.1 ATI-1.6.36, ATI Technologies Inc.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 400
at net.minecraft.src.Block.<init>(Block.java:209)
at net.minecraft.src.Block.<init>(Block.java:238)
at net.minecraft.src.BlockLeavesBase.<init>(BlockLeavesBase.java:18)
at net.minecraft.src.BlockGoldSapLeaves.<init>(BlockGoldSapLeaves.java:10)
at net.minecraft.src.mod_EMod.<clinit>(mod_EMod.java:33)
... 15 more
Here's the code:
public class mod_EMod extends BaseMod{
public String getVersion() {
return "1.0.0";
}
public mod_EMod(){
ModLoader.AddName(GoldSapLeaves, "GoldSap Leaves");
ModLoader.AddName(GoldSapLog, "GoldSap");
ModLoader.RegisterBlock(GoldSapLeaves);
ModLoader.RegisterBlock(GoldSapLog);
}
public void GenerateSurface(World world, Random random, int i, int j)
{
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(i, j);
WorldGenGoldSapTree worldgennameheretrees = new WorldGenGoldSapTree();
if((biomegenbase instanceof BiomeGenForest) || (biomegenbase instanceof BiomeGenForest))
{
int k = i + random.nextInt(16) + 8;
int l = j + random.nextInt(16) + 8;
int i1 = world.getHeightValue(k, l);
worldgennameheretrees.func_517_a(1.0D, 1.0D, 1.0D);
worldgennameheretrees.generate(world, random, k, i1, l);
}
}
public static final Block GoldSapLeaves = (new BlockGoldSapLeaves(400, ModLoader.addOverride("/terrain.png", "/GoldSapTextures/GoldenLeaves.png"))).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("GoldSapLeaves").disableStats();
public static final Block GoldSapLog = (new BlockGoldSapLog(401)).setHardness(2.0F).setStepSound(Block.soundWoodFootstep).setBlockName("GoldSapWood");
public void load() {
}
}
There is no error in the code, no warning signs, nothing. I'm making a new tree right now, and the leaves/log/spawn files don't seem to be the problem, so I didn't post them. I can if you want though.
0
I really enjoyed the building aspect of the mod, but the tedious farming turned me off. Are there any mods that encourage the building of structures or reward you for it? I really like the building aspect of the game much more than the survival.
0
0
0
{
MagmaPowder.iconIndex = ModLoader.addOverride("/gui/items.png", "/mpowder/mpowder.png");
ModLoader.AddName(MagmaPowder, "Magma Powder");
}
is now
public void load()
{
MagmaPowder.iconIndex = ModLoader.addOverride("/gui/items.png", "/mpowder/mpowder.png");
ModLoader.AddName(MagmaPowder, "Magma Powder");
}
0
I'm having this problem too, you put your sprites in MCP>Jars>Bin>Minecraft.jar, correct?
0
Oh ya, that's it. I gave my blocks ID's of 400 and 401. Thanks.
0
Now when I try to run the game I get:
Here's the code:
There is no error in the code, no warning signs, nothing. I'm making a new tree right now, and the leaves/log/spawn files don't seem to be the problem, so I didn't post them. I can if you want though.
0
0
so thant doesn't really work...
0
0
0
0
just check Block.java, it lists all the blocks.
0
0
NOPE
In my mod, I have a couple of recipes that don't use all three ""'s, and I'm fine.
That's where the problem is, according to the error message.
It has something to do with BlockeFence extending BlockFence, I think