I am having trouble getting people connected to my bukkit server. I have watched countless videos and change configuration multiple times, to no avail. If someone can Teamviewer with me to help sort this out, it would be helpful.
I have been trying to get my mod into a game yet it hangs on the building terrain every time. What is causing this and how do I fix it? Error report hopefully soon, waiting on crash...
MOD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package net.minecraft.src;
import java.util.Random;
public class mod_RealCraft extends BaseMod
{
public static final Block SilverOreBlock;
public static final Item ItemSilverOre;
static
{
SilverOreBlock = (new BlockSilverOre(200, ModLoader.addOverride("/terrain.png", "/mods/RealCraft/Blocks/BlockSilverOre.png")))
.setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("BlockSilverOre");
ItemSilverOre = (new Item(201)).setIconIndex(ModLoader.addOverride("/gui/items.png", "/mods/RealCraft/Items/ItemSilverOre.png"))
.setItemName("ItemSilverOre");
}
public mod_RealCraft()
{
ModLoader.addName(ItemSilverOre, "Silver Ore");
}
public void generateSurface(World world, Random rand, int chunkx, int chunkz)
{
//Silver Ore Block//
for (int l = 0; 1<45; l++)
{
int i1 = chunkx +rand.nextInt(16);
int j1 = rand.nextInt(64);
int k1 = chunkz +rand.nextInt(16);
(new WorldGenMinable(SilverOreBlock.blockID, 9)).generate(world, rand, i1, j1, k1);
}
//End Silver Ore Block//
}
public void load()
{
}
public String getVersion()
{
return "1.0.0";
}
}
BLOCK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package net.minecraft.src;
import java.util.Random;
public class BlockSilverOre extends BlockStone
{
public BlockSilverOre(int i, int j)
{
super(i, j);
}
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random, int j)
{
return mod_RealCraft.ItemSilverOre.shiftedIndex;
}
}
ORE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package net.minecraft.src;
import java.util.Random;
public class ItemSilverOre extends Item
{
public ItemSilverOre(int i)
{
super(i);
}
}
0
0
0
EDIT:
NVM apparently you need shifted index. I dont understand why you do though if you are pointing to a separate file.
0
~EDIT~
It isn't going to close....So without an error log, any help would be great...
0
MOD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BLOCK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ORE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~