• 0

    posted a message on Horse Rig by icrdr [FREE Download] Dynamics Tail + Flexible neck
    Quote from icrdr

    why so diao? :ph34r:

    Because I jiu shi na me diao
    Posted in: Other Fan Art
  • 0

    posted a message on Share Your Techne Models!
    up
    Posted in: Mods Discussion
  • 0

    posted a message on TheInstitution's Modding Tutorials + FORGE TUTS

    My code
    mod_sf.java
    package ScientFront.common;
    
    import net.minecraft.src.Block;
    import net.minecraft.src.ModLoader;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.Init;
    import cpw.mods.fml.common.Mod.PostInit;
    import cpw.mods.fml.common.Mod.PreInit;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPostInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.network.NetworkMod;
    import cpw.mods.fml.common.registry.GameRegistry;
    //import cpw.mods.fml.common.registry.LanguageRegistry;
    import cpw.mods.fml.common.SidedProxy;
    //使用两个Annotation修饰mod_sf类
    @Mod( modid = "sf", name="ScientFront", version="Indev")
    @NetworkMod(clientSideRequired = true, serverSideRequired = false)
    
    public class mod_sf
    {
    public static Block OreTi;
    
    public static Block OreMg;
    
    
    @SidedProxy(clientSide = "ScientFront.client.ClientProxy",serverSide = "ScientFront.common.CommonProxy")
    public static CommonProxy proxy;
    //使用Annotation修饰load方法
    @Init
    
    
    public void load(FMLInitializationEvent event)
    {
    	 proxy.registerRenderThings();
    
    	 GameRegistry.registerWorldGenerator(new WorldGenOre());
    	 OreTi = new BlockOreTi(176,1).setHardness(5F).setResistance(3F).setBlockName("Ti");
    ModLoader.registerBlock(OreTi);
    ModLoader.addName(OreTi, "钛矿石");
    
    
    		 }
    
    @PreInit
    
    public void preInit(FMLPreInitializationEvent event)
    {
    		
    }
    @PostInit
    
    public void postInit(FMLPostInitializationEvent event)
    {
    		
    }
    }

    BlockOreTi.java
    package ScientFront.common;
    import net.minecraft.src.Block;
    import net.minecraft.src.CreativeTabs;
    import net.minecraft.src.EnumToolMaterial;
    import net.minecraft.src.Material;
    public class BlockOreTi extends Block {
    public BlockOreTi(int par1,int par2) {
    super(par1,par2,Material.rock);
    this.setCreativeTab(CreativeTabs.tabBlock);
    }
    public EnumToolMaterial getToolMaterial() {
    return getToolMaterial();
    }
    public boolean canHarvestBlock(Block par1Block)
    {
    	 return par1Block == mod_sf.OreTi && this.getToolMaterial().getHarvestLevel() >= 2;
    }
    public String getTextureFile(){
    return "sfTexture.png";
    }
    }

    package ScientFront.client;
    import net.minecraftforge.client.MinecraftForgeClient;
    import ScientFront.common.CommonProxy;
    public class ClientProxy extends CommonProxy {
    @Override
    public void registerRenderThings(){
    MinecraftForgeClient.preloadTexture("/sfTexture.png");
    }
    
    
    
    }

    package ScientFront.common;
    public class CommonProxy {
    public void registerRenderThings(){
    
    }
    
    }



    How can I do?
    Posted in: Tutorials
  • 0

    posted a message on [1.3.2]Goatsmilk mod[v1.1.0][ssp]{October 1st, 2012}
    You are Chinese~~~~!!! :SSSS: :SSSS: :SSSS:
    Posted in: Minecraft Mods
  • 0

    posted a message on TheInstitution's Modding Tutorials + FORGE TUTS
    Your toturial "" didn't work .There is no errors and warnings.Please help me.
    Posted in: Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Quote from TechGuy543

    You'll need to edit GuiInventory, unfortunately.


    The tutorial has been updated, you should no longer get errors. Not sure about yourother problems. I don't work with blocks much.


    Your items are not in Item.java so do not try and reference them to there. Just use NetherBar.shiftedIndex and NetherBall.shifted index without the Item. path.


    I know how to do it, I just don't have the time to make a new tutorial at the moment.


    Change the super statement in the bottom of the onBlockActivated method to:
    return super.onBlockActivated(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par 8, par9);
    The tutorial has been fixed.


    You've done something wrong. It does work.

    Anything wrong?! I do the same thing in mcp62 and it's work well.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    I entered the code correctly, but nothing has happened :huh:
    Posted in: Mapping and Modding Tutorials
  • To post a comment, please .