Jump to content

Issues trying to run Mod on Server 1.6.4 [Not Solved]


SilasOtoko

Recommended Posts

I have been trying to run my Mod on a server but I am running into some issues. Basically, almost nothing works. The other mods that I have installed work, and my mod works on single player, but nothing generates with my mod and when I try to use the items they disappear when I right click with them. Strangely enough the custom armor works fine, but that is about it. I do not get any errors either. Can anyone help me with this?

 

Main:

 

package josiah.FirstMod;

 

import josiah.FirstMod.gui.GuiHandler;

import net.minecraft.block.material.Material;

import net.minecraft.block.Block;

import net.minecraft.block.BlockFlower;

import net.minecraft.client.model.ModelIronGolem;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityEggInfo;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemFood;

import net.minecraft.item.ItemStack;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.client.registry.RenderingRegistry;

import cpw.mods.fml.common.FMLCommonHandler;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.network.NetworkRegistry;

import cpw.mods.fml.common.registry.EntityRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

/*

* Basic needed forge stuff

*/

@Mod(modid="Runes",name="Runes", version="v1.2")

@NetworkMod(clientSideRequired=true,serverSideRequired=false)

 

 

 

 

public class TutorialMod{

@SidedProxy(clientSide = "josiah.FirstMod.ClientProxy", serverSide = "josiah.FirstMod.CommonProxy")

public static CommonProxy proxy;

 

@Mod.Instance(TutorialMod.modid)

public static TutorialMod instance;

public static final String modid = "Runes";

 

 

 

//Mob Id's

static int startEntityID = 300;

 

//Egg prompts

public static int getUniqueEntityId(){

do{

startEntityID++;

}

while(EntityList.getStringFromID(startEntityID)!= null);

return startEntityID++;

}

public static void RegisterEntityEgg(Class<? extends Entity> entity, int primarycolor, int secondaryColor){

int id = getUniqueEntityId();

EntityList.IDtoClassMapping.put(id, entity);

EntityList.entityEggs.put(id, new EntityEggInfo(id, primarycolor, secondaryColor));

}

 

public static final int guiIdSilverInfuser = 0;

 

 

 

 

//ToolMaterial

 

 

public static EnumToolMaterial EnumToolMaterialSilver= EnumHelper.addToolMaterial("Silver", 3, 500, 8.0F, 3, 10);

public static EnumToolMaterial EnumToolMaterialRune= EnumHelper.addToolMaterial("Rune", 3, 300, 8.0F, 3, 10);

public static EnumArmorMaterial EnumArmorMaterialRune= EnumHelper.addArmorMaterial("Rune", 33 ,new int[]{3, 8, 6, 3}, 10);

 

//Item

 

 

public static Item SilverEssence;

public static Item SilverPickAxe;

public static Item SilverAxe;

public static Item SilverSword;

public static Item SilverLeaf;

public static Item SilverRing;

public static Item ReedFlute;

public static Item ShriveledLeaf;

public static Item EarthRune;

public static Item FireRune;

public static Item WaterRune;

public static Item EarthSword;

public static Item FireSword;

public static Item WaterSword;

public static Item Rune;

public static Item EarthStaff;

public static Item FireRuneHelmet;

public static Item WaterRuneHelmet;

public static Item EarthRuneHelmet;

public static Item FireRuneChestplate;

public static Item WaterRuneChestplate;

public static Item EarthRuneChestplate;

public static Item FireRuneLeggings;

public static Item WaterRuneLeggings;

public static Item EarthRuneLeggings;

public static Item FireRuneBoots;

public static Item WaterRuneBoots;

public static Item EarthRuneBoots;

public static Item CreeperHeart;

public static Item ElfSight;

public static Item RuneDust;

public static Item SilverBowlFireEssence;

public static Item SilverBowl;

public static Item SilverBowlWater;

public static Item SilverBowlMilk;

public static Item Bowl;

public static Item WildOnion;

public static Item HorseShrinkWand;

public static Item HorseFigurine;

public static Item Leaf;

    public static Item FireBow;

    public static Item WaterPickAxe;

    public static Item SilverFireBow;

    public static Item ForestWalkerFigurine;

    public static Item Mutton;

    public static Item CookedMutton;

 

//Block

 

public static Block SilverOre;

public static Block GlowFlower;

public static Block EarthStone;

public static Block FireStone;

public static Block WaterStone;

public static Block RuneBlock;

public static Block SilverLog;

public static Block SilverLeaves;

public static Block SilverSapling;

public static Block MinerMushroom;

public static Block WildOnionPlant;

public static Block SilverInfuserIdle;

public static Block SilverInfuserActive;

 

//Creative Tabs

public static CreativeTabs tabRunesMod = new TabRunesMod(CreativeTabs.getNextID(), "Runes Mod");

 

 

//Declaring Init

@Init

public void load(FMLInitializationEvent event){

// define

 

//proxy.registerRenderThings();

 

 

MinecraftForge.EVENT_BUS.register(new CustomDrops());

MinecraftForge.EVENT_BUS.register(new SilverBowlMilkEvent());

 

 

//blocks

 

GlowFlower = new GlowFlower(500).setUnlocalizedName("glowFlowerBlock").setHardness(0.0F).setLightValue(.9F).setStepSound(Block.soundGrassFootstep);

GameRegistry.registerBlock(GlowFlower, "GlowFlower");

LanguageRegistry.addName(GlowFlower, "GlowFlower");

SilverOre = new SilverOre(501).setUnlocalizedName("oreSilver").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F);

GameRegistry.registerBlock(SilverOre, "Silver Ore");

LanguageRegistry.addName(SilverOre,  "Silver Ore");

EarthStone = new EarthStone(502).setUnlocalizedName("EarthStone").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F);

GameRegistry.registerBlock(EarthStone, "Earth Stone");

LanguageRegistry.addName(EarthStone, "Earth Stone");

FireStone = new FireStone(503).setUnlocalizedName("FireStone").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F);

GameRegistry.registerBlock(FireStone, "Fire Stone");

LanguageRegistry.addName(FireStone, "Fire Stone");

WaterStone = new WaterStone(504).setUnlocalizedName("WaterStone").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F);

GameRegistry.registerBlock(WaterStone, "Water Stone");

LanguageRegistry.addName(WaterStone, "Water Stone");

//RuneBlock = new RuneBlock(505).setUnlocalizedName("RuneBlock").setHardness(2.0F).setStepSound(Block.soundStoneFootstep).setResistance(5.0F);

//GameRegistry.registerBlock(RuneBlock, "Rune Block");

//LanguageRegistry.addName(RuneBlock, "Rune Stone");

SilverLog = new SilverLog(506, 0).setUnlocalizedName("log_Silver").setHardness(1.5F).setStepSound(Block.soundWoodFootstep);

GameRegistry.registerBlock(SilverLog, "Silver Log");

LanguageRegistry.addName(SilverLog,  "Silver Log");

SilverLeaves = new SilverLeaves(507, 0).setUnlocalizedName("SilverLeaves").setHardness(0.5F).setStepSound(Block.soundGrassFootstep);

GameRegistry.registerBlock(SilverLeaves, "Silver Leaves");

LanguageRegistry.addName(SilverLeaves, "Silver Leaves");

SilverSapling = new SilverSapling(508, 0).setUnlocalizedName("SilverSapling").setHardness(1.5F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep);

GameRegistry.registerBlock(SilverSapling, "Silver Sapling");

LanguageRegistry.addName(SilverSapling, "Silver Sapling");

MinerMushroom = new MinerMushroom(509).setUnlocalizedName("MinerMushroom").setHardness(1.5F).setLightValue(.5F).setStepSound(Block.soundGrassFootstep);

GameRegistry.registerBlock(MinerMushroom, "Miner Mushroom");

LanguageRegistry.addName(MinerMushroom, "Miner Mushroom");

WildOnionPlant = new WildOnionPlant(510).setUnlocalizedName("WildOnionPlant").setHardness(.0F).setStepSound(Block.soundGrassFootstep);

GameRegistry.registerBlock(WildOnionPlant, "Wild Onion");

LanguageRegistry.addName(WildOnionPlant, "Wild Onion");

SilverInfuserIdle = new SilverInfuser(511, false).setUnlocalizedName("SilverInfuserIdle").setHardness(3.5F).setCreativeTab(TutorialMod.tabRunesMod);

GameRegistry.registerBlock(SilverInfuserIdle, "Silver Infuser");

LanguageRegistry.addName(SilverInfuserIdle, "Silver Infuser");

SilverInfuserActive = new SilverInfuser(512, true).setUnlocalizedName("SilverInfuserIdle").setHardness(3.5F).setLightValue(0.9F);

GameRegistry.registerBlock(SilverInfuserActive, "Silver Infuser Active");

 

//items

SilverLeaf = new SilverLeaf(2012).setUnlocalizedName("SpecialLeaf");

LanguageRegistry.addName(SilverLeaf, "Silver Leaf");

SilverEssence = new SilverEssence(2014).setUnlocalizedName("SilverEssence");

LanguageRegistry.addName(SilverEssence, "Silver Essence");

SilverPickAxe = new SilverPickAxe(2015, EnumToolMaterialSilver).setUnlocalizedName("SilverPickAxe");

LanguageRegistry.addName(SilverPickAxe, "Silver Pickaxe");

SilverAxe = new SilverAxe(2016, EnumToolMaterialSilver).setUnlocalizedName("SilverAxe");

LanguageRegistry.addName(SilverAxe, "Silver Axe");

SilverSword = new SilverSword(2018, EnumToolMaterialSilver).setUnlocalizedName("SilverSword");

LanguageRegistry.addName(SilverSword, "Silver Sword");

//SilverRing = new SilverRing(2020).setUnlocalizedName("Ring");

//LanguageRegistry.addName(SilverRing,  "Silver Ring");

//ReedFlute = new ReedFlute(2021).setUnlocalizedName("ReedFlute");

//LanguageRegistry.addName(ReedFlute, "Reed Flute");

ShriveledLeaf = new ItemLeaf(2022).setUnlocalizedName("ShriveledLeaf");

LanguageRegistry.addName(ShriveledLeaf, "Leaf");

EarthRune = new EarthRune(2023).setUnlocalizedName("EarthStoneOre");

LanguageRegistry.addName(EarthRune, "Earth Rune");

FireRune = new FireRune(2024).setUnlocalizedName("FireStoneOre");

LanguageRegistry.addName(FireRune, "Fire Rune");

WaterRune = new WaterRune(2025).setUnlocalizedName("WaterStoneOre");

LanguageRegistry.addName(WaterRune, "Water Rune");

FireSword = new FireSword(2026, EnumToolMaterialRune).setUnlocalizedName("FireSword");

LanguageRegistry.addName(FireSword, "FireSword");

EarthSword = new EarthSword(2027, EnumToolMaterialRune).setUnlocalizedName("EarthSword");

LanguageRegistry.addName(EarthSword, "EarthSword");

WaterSword = new WaterSword(2028, EnumToolMaterialRune).setUnlocalizedName("WaterSword");

LanguageRegistry.addName(WaterSword, "WaterSword");

Rune = new Rune(2029).setUnlocalizedName("Rune");

LanguageRegistry.addName(Rune, "Rune");

EarthStaff = new EarthStaff(2030).setUnlocalizedName("EarthStaff");

LanguageRegistry.addName(EarthStaff, "Earth Staff");

FireRuneHelmet = new FireRuneHelmet(2031, EnumArmorMaterialRune, proxy.addArmor("FireRuneHelmet"), 0).setUnlocalizedName("FireRuneHelmet");

LanguageRegistry.addName(FireRuneHelmet, "FireRune Helmet");

WaterRuneHelmet = new WaterRuneHelmet(2032, EnumArmorMaterialRune, proxy.addArmor("WaterRuneHelmet"), 0).setUnlocalizedName("WaterRuneHelmet");

LanguageRegistry.addName(WaterRuneHelmet, "WaterRune Helmet");

EarthRuneHelmet = new EarthRuneHelmet(2033, EnumArmorMaterialRune, proxy.addArmor("EarthRuneHelmet"), 0).setUnlocalizedName("EarthRuneHelmet");

LanguageRegistry.addName(EarthRuneHelmet, "EarthRune Helmet");

FireRuneChestplate = new FireRuneChestplate(2034, EnumArmorMaterialRune, proxy.addArmor("FireRuneChestplate"), 1).setUnlocalizedName("FireRuneChestplate");

LanguageRegistry.addName(FireRuneChestplate, "FireRune Chestplate");

WaterRuneChestplate = new WaterRuneChestplate(2035, EnumArmorMaterialRune, proxy.addArmor("WaterRuneChestplate"), 1).setUnlocalizedName("WaterRuneChestplate");

LanguageRegistry.addName(WaterRuneChestplate, "WaterRune Chestplate");

EarthRuneChestplate = new EarthRuneChestplate(2036, EnumArmorMaterialRune, proxy.addArmor("EarthRuneChestplate"), 1).setUnlocalizedName("EarthRuneChestplate");

LanguageRegistry.addName(EarthRuneChestplate, "EarthRune Chestplate");

FireRuneLeggings = new FireRuneLeggings(2037, EnumArmorMaterialRune, proxy.addArmor("FireRuneLeggings"), 2).setUnlocalizedName("FireRuneLeggings");

LanguageRegistry.addName(FireRuneLeggings, "FireRune Leggings");

WaterRuneLeggings = new WaterRuneLeggings(2038, EnumArmorMaterialRune, proxy.addArmor("WaterRuneLeggings"), 2).setUnlocalizedName("WaterRuneLeggings");

LanguageRegistry.addName(WaterRuneLeggings, "WaterRune Leggings");

EarthRuneLeggings = new EarthRuneLeggings(2039, EnumArmorMaterialRune, proxy.addArmor("EarthRuneLeggings"), 2).setUnlocalizedName("EarthRuneLeggings");

LanguageRegistry.addName(EarthRuneLeggings, "EarthRune Leggings");

FireRuneBoots = new FireRuneBoots(2040, EnumArmorMaterialRune, proxy.addArmor("FireRuneBoots"), 3).setUnlocalizedName("FireRuneBoots");

LanguageRegistry.addName(FireRuneBoots, "FireRune Boots");

WaterRuneBoots = new WaterRuneBoots(2041, EnumArmorMaterialRune, proxy.addArmor("WaterRuneBoots"), 3).setUnlocalizedName("WaterRuneBoots");

LanguageRegistry.addName(WaterRuneBoots, "WaterRune Boots");

EarthRuneBoots = new EarthRuneBoots(2042, EnumArmorMaterialRune, proxy.addArmor("EarthRuneBoots"), 3).setUnlocalizedName("EarthRuneBoots");

LanguageRegistry.addName(EarthRuneBoots, "EarthRune Boots");

CreeperHeart = new CreeperHeart(2043).setUnlocalizedName("CreeperHeart");

LanguageRegistry.addName(CreeperHeart, "CreeperHeart");

ElfSight = new ElfSight(2044).setUnlocalizedName("ElfSight");

LanguageRegistry.addName(ElfSight, "ElfSight");

RuneDust = new RuneDust(2045).setUnlocalizedName("RuneDust");

LanguageRegistry.addName(RuneDust, "RuneDust");

SilverBowlFireEssence = new SilverBowlFireEssence(2046, 1).setUnlocalizedName("SilverBowlFireEssence");

LanguageRegistry.addName(SilverBowlFireEssence, "FireEssence");

SilverBowl = new SilverBowl(2047).setUnlocalizedName("SilverBowl");

LanguageRegistry.addName(SilverBowl, "Silver Bowl");

SilverBowlWater = new SilverBowlWater(2048, 2).setUnlocalizedName("SilverBowlWater");

LanguageRegistry.addName(SilverBowlWater, "Rune Water");

SilverBowlMilk = new SilverBowlMilk(2049, 2).setUnlocalizedName("SilverBowlMilk");

LanguageRegistry.addName(SilverBowlMilk, "Rune Milk");

Bowl = new Bowl(2050).setUnlocalizedName("WoodBowl");

LanguageRegistry.addName(Bowl, "WoodBowl");

WildOnion = new WildOnion(2051, 1, 0.3F, TutorialMod.WildOnionPlant.blockID, Block.grass.blockID).setUnlocalizedName("WildOnion");

LanguageRegistry.addName(WildOnion, "Wild Onion");

Leaf = new Leaf(2052).setUnlocalizedName("Leaf");

    LanguageRegistry.addName(Leaf, "Leaf");

    FireBow = new FireBow(2053).setUnlocalizedName("FireBow");

    LanguageRegistry.addName(FireBow, "Fire Bow");

    WaterPickAxe =  new WaterPickAxe(2054, EnumToolMaterialRune).setUnlocalizedName("WaterPickAxe");

    LanguageRegistry.addName(WaterPickAxe, "Water Pickaxe");

    SilverFireBow = new SilverFireBow(2055).setUnlocalizedName("SilverFireBow");

    LanguageRegistry.addName(SilverFireBow, "Silver FireBow");

    ForestWalkerFigurine = new ForestWalkerFigurine(2056).setUnlocalizedName("ForestWalkerFigurine");

    LanguageRegistry.addName(ForestWalkerFigurine, "ForestWalker Figurine");

    Mutton = new Mutton(2057, 3, 0.3F, true).setUnlocalizedName("Mutton");

    LanguageRegistry.addName(Mutton, "Mutton");

    CookedMutton = new CookedMutton(2058, 8, 0.8F, true).setUnlocalizedName("CookedMutton");

    LanguageRegistry.addName(CookedMutton, "Cooked Mutton");

   

 

//crafting

 

GameRegistry.addShapelessRecipe(new ItemStack(GlowFlower, 2), new Object[]{

Block.plantYellow, SilverEssence});

GameRegistry.addShapelessRecipe(new ItemStack(ElfSight, 1), new Object[]{

Item.spiderEye, Item.enderPearl});

GameRegistry.addRecipe(new ItemStack(SilverPickAxe, 1), new Object[]{

"SSS", " T ", " T ", 'S',SilverEssence,'T',Item.stick});

GameRegistry.addRecipe(new ItemStack(SilverAxe, 1), new Object[]{

"SS ", "ST ", " T ", 'S',SilverEssence, 'T',Item.stick});

GameRegistry.addRecipe(new ItemStack(SilverSword, 1), new Object[]{

" S ", " S ", " T ", 'S', SilverEssence, 'T', Item.stick});

//GameRegistry.addRecipe(new ItemStack(SilverRing, 1), new Object[]{

// " S ", "S S", " S ", 'S', SilverNugget});

//GameRegistry.addRecipe(new ItemStack(ReedFlute, 1), new Object[]{

// " SR", " SS", 'S', SilverNugget, 'R', Item.reed });

GameRegistry.addRecipe(new ItemStack(FireSword, 1), new Object[]{

" F ", " F ", "ESE", 'F', FireRune, 'S', Item.stick, 'E', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthSword, 1), new Object[]{

" E ", " E ", "KSK", 'E', EarthRune, 'S', Item.stick, 'K', SilverEssence});

GameRegistry.addRecipe(new ItemStack(WaterSword, 1), new Object[]{

" W ", " W ", "KSK", 'W', WaterRune, 'S', Item.stick, 'K', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthStaff, 1), new Object[]{

"  E", " S ", "S  ", 'E', EarthRune, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(FireRuneHelmet, 1), new Object[]{

"SFS", "S S", 'F', FireRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(FireRuneChestplate, 1), new Object[]{

"F F", "SFS", "SSS", 'F', FireRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(FireRuneLeggings, 1), new Object[]{

"FSF","S S","S S", 'F', FireRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(FireRuneBoots, 1), new Object[]{

"S S", "F F", 'F', FireRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(WaterRuneHelmet, 1), new Object[]{

"SWS", "S S", 'W', WaterRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(WaterRuneChestplate, 1), new Object[]{

"W W", "SWS","SSS", 'W', WaterRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(WaterRuneLeggings, 1), new Object[]{

"WSW", "S S", "S S", 'W', WaterRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(WaterRuneBoots, 1), new Object[]{

"S S", "W W", 'W', WaterRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthRuneHelmet, 1), new Object[]{

"SES", "S S", 'E', EarthRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthRuneChestplate, 1), new Object[]{

"E E", "SES", "SSS", 'E', EarthRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthRuneLeggings, 1), new Object[]{

"ESE", "S S", "S S", 'E', EarthRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(EarthRuneBoots, 1), new Object[]{

"S S", "E E", 'E', EarthRune, 'S', SilverEssence});

GameRegistry.addRecipe(new ItemStack(SilverLeaf, 1), new Object[]{

" L ", "LRL", " L ", 'L', ShriveledLeaf, 'R', EarthRune});

GameRegistry.addRecipe(new ItemStack(Bowl, 1), new Object[]{

"W W", " W ", 'W', SilverLog,});

GameRegistry.addRecipe(new ItemStack(SilverBowl, 1), new Object[]{

" S ", "SBS", " S ", 'S', SilverEssence, 'B', Bowl});

GameRegistry.addRecipe(new ItemStack(CreeperHeart, 1), new Object[]{

" G ", "GEG", " G ", 'G', Item.gunpowder, 'E', EarthRune});

GameRegistry.addRecipe(new ItemStack(SilverLeaf, 1), new Object[]{

        " S ", "SLS", " S ", 'S', SilverEssence, 'L', Leaf });

GameRegistry.addRecipe(new ItemStack(FireBow, 1), new Object[]{

"  F", " B ", "F  ", 'F', FireRune, 'B', Item.bow});

        GameRegistry.addRecipe(new ItemStack(SilverFireBow, 1), new Object[]{

        " S ", "SFS", " S ", 'S', SilverEssence, 'F', FireBow});

 

 

//World Generator

 

GameRegistry.registerWorldGenerator(new WorldGeneratorJosiah());

 

//Fuel Register

    GameRegistry.registerFuelHandler(new CustomFuelHandler());

   

    //Tile Register

    GameRegistry.registerTileEntity(TileEntitySilverInfuser.class, "tileEntitySilverInfuser");

   

    NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

    LanguageRegistry.instance().addStringLocalization("container.SilverInfuser", "Silver Infuser");

   

 

 

//Extra Registers

gameRegisters();

//languageRegisters();

//crafters();

 

//Ent

EntityRegistry.registerGlobalEntityID(EntityForestWalker.class, "Ent", 1);

EntityRegistry.addSpawn(EntityForestWalker.class, 2, 1, 1, EnumCreatureType.monster, BiomeGenBase.forest);

EntityRegistry.findGlobalUniqueEntityId();

 

 

 

EntityRegistry.findGlobalUniqueEntityId();

EntityRegistry.registerModEntity(EntityCreeperHeart.class, "CreeperHeart", 3, this, 80, 3, true);

    LanguageRegistry.instance().addStringLocalization("entity.CreeperHeart.name", "CreeperHeart");

   

   

    proxy.registerRenderers();

}

 

private static void gameRegisters(){

 

//item

 

}

}

 

 

 

ClientProxy:

 

package josiah.FirstMod;

 

import cpw.mods.fml.client.registry.RenderingRegistry;

 

public class ClientProxy extends CommonProxy{

@Override

public void registerRenderers(){

RenderingRegistry.registerEntityRenderingHandler(EntityForestWalker.class, new RenderEnt(new ModelEnt(), 0.3F));

RenderingRegistry.registerEntityRenderingHandler(EntityCreeperHeart.class, new RenderCreeperHeart(TutorialMod.CreeperHeart));

}

 

 

@Override

 

public int addArmor(String armor)

{

return RenderingRegistry.addNewArmourRendererPrefix(armor);

}

}

 

 

 

 

CommonProxy:

 

package josiah.FirstMod;

 

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.IGuiHandler;

 

public class CommonProxy

{

/*

* Methods for ClientProxy to Override

*/

public void registerRenderers() {

 

}

 

public int addArmor(String string){

return 0;

}

 

 

}

 

Link to comment
Share on other sites

Just because a mod works in single player doesn't necessarily mean that it will work properly in multiplayer; for example, I had a reference to the mine craft instance in the start of my own mod that I had to remove.

 

It sounds like you are having issues with your mod after it is placed in actual minecraft but the issues are in the coding; it may help you to run the server from your development environment. By that, I mean that the way you tested your mod (hitting the green run button at the top if you have eclipse) can be applied to the server as well; if you click a little arrow on the side you can run the minecraft server program from eclipse. If it doesn't crash right away, you can then start up the minecraft single player version and connect to your eclipse server.

 

And again, I'm reasonably sure that @Init needs to be @EventHandler and your constructors should be in a preInit method. This is copied from Havvy's forge tutorials, which I recommend you check out; the methods and syntax are reasonably up-to-date (sorry for copy pasting but I either don't know how to hide code or it's not working in my browser for some reason).

 

@Mod(modid="generic", name="Generic", version="0.0.0")

@NetworkMod(clientSideRequired=true, serverSideRequired=false)

public class Generic {

       

       

        @Instance(value="generic")

        public static Generic instance;

 

        private static Item genericItem;

        public static Item genericIngot;

 

        @SidedProxy(clientSide="tutorial.generic.client.ClientProxy",

                        serverSide="tutorial.generic.CommonProxy")

        public static CommonProxy proxy;

       

        @EventHandler

        public void preInit(FMLPreInitializationEvent event) {

                genericItem = new GenericItem(5000);

                genericIngot = new GenericItem(5001)

                .setMaxStackSize(16).setUnlocalizedName("genericIngot");

        }

       

        @EventHandler

        public void load(FMLInitializationEvent event) {

                LanguageRegistry.addName(genericItem, "Generic Item");

                LanguageRegistry.addName(genericIngot, "Generic Ingot");

        }

       

        @EventHandler

        public void postInit(FMLPostInitializationEvent event) {

                // Stub Method

        }

}

Link to comment
Share on other sites

import net.minecraft.client.model.ModelIronGolem;

Update your imports. Check you don't reference client-side only classes in common classes.

Start blocks and items in PreInit phase. Register your items with GameRegistry.

Read tutorials for registering entities properly, and localizing things.

Link to comment
Share on other sites

Nevermind. It worked on the MCP server but once I tried it on the regular server it still doesn't work. I noticed that when I try reobfuscating the files, it tells me the server source is messed up and to run updatemd5. When I try running updatemd5 it just tells me to fix the server source first. Any help in fixing this? I haven't messed with any vanilla files, and it even gives me this error when I run a fresh MCP install.

Link to comment
Share on other sites

The server source error should be normal; I think it always spits that error out. Other than that, I guess just troubleshoot. Make sure that the version of forge your mod is created in is the same version on your server. I would also recommend having no other mods on that server just in case there's a conflict and that's the cause of the issue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.