• 1

    posted a message on Recipes involving modded items
    Quote from TechGuy543

    Yeh, it'll do the same thing anyway.

    Yeah, I know. Just organized more.
    Posted in: Modification Development
  • 1

    posted a message on Recipes involving modded items
    Quote from TechGuy543

    public void load()
    {
    recipe here
    }



    In the load() method.


    Or just do this instead

    public void load()
    {
        MakeRecipes();
    }
    Posted in: Modification Development
  • 1

    posted a message on Recipes involving modded items
    Try this. It Should work.

    private void MakeRecipes()
    {
         ModLoader.AddRecipe(new ItemStack(Item.silk, 4), new Object[]{ 
         "#", Character.valueOf('#'), mod_Silkworm.Cocoon
         });
                    
         ModLoader.AddRecipe(new ItemStack(Block.web, 1), new Object[]{ 
         "###", "###", "###", Character.valueOf('#'), Item.silk
         });
    }
    Posted in: Modification Development
  • 2

    posted a message on Need coder and art/modeler for mythic minecraft expansion
    Sorry man but no one will help you. It's a big ask for 5 months and coders only do what they want.
    Posted in: Mods Discussion
  • 1

    posted a message on [1.1 - 1.0.0] MrCrayfish's Mods - *NEW* Furniture Mod! Store-able fridges, sit-able chairs!
    Update:

    +Added new mod. 'Furniture Mod'
    Posted in: Minecraft Mods
  • 1

    posted a message on Grass Like Block...
    Try this instead
     package net.minecraft.src;
    
    import java.util.Random;
    
    public class SGrass extends Block
    {
    	public SGrass(int i, int j)
        {
            super(i, j, Material.ground);
            setTickOnLoad(true);
        }
    
        public int idDropped(int i, Random random, int j)
        {
            return mod_scottish.SGrass.blockID;
        }
        
        public int top = ModLoader.addOverride("/terrain.png", "/scottish/sgrasstop.png");
        public int sides = ModLoader.addOverride("/terrain.png", "/scottish/sgrass.png");
    
        public int getBlockTextureFromSideAndMetadata(int i, int j)
        {
            if (i == 1)
            {
                return top;
            }
            if (i == 0)
            {
            	return Block.dirt.blockID;
            }
            else
            {
            	return sides;
            }
        }
    
    
    }
    Posted in: Modification Development
  • 1

    posted a message on Grass Like Block...
    Change this code to your choice.

    public int getBlockTextureFromSideAndMetadata(int i, int j)
    {
        if (i == 1) //TOP
        {
            return top;
        }
        if (i == 0) //BOTTOM
        {
            return  whatever;
        }
        else
        {
            return sides;
        }
    }
    Posted in: Modification Development
  • 1

    posted a message on Throwable entities and rendering
    I figured out the problem, change
    RenderPuck()
    to
    RenderPuck.class

    then it should look like this
     public void AddRenderer(Map map)
            {
            map.put(EntityPuck.class, new RenderPuck.class);
            }

    What you did wrong was you were trying to call a method, you were suppose to be calling a class.

    Also, add this into you mod*** if you haven't already.
    public String getVersion()
    {
    	return "Puck Mod v1.0 - 1.1";
    }
    Posted in: Modification Development
  • 1

    posted a message on Throwable entities and rendering
    Quote from matmoh11

    hahaha i know that i cant just make a spear with that code :tongue.gif:

    but im stuck once again... im going to just post my code and could you please see where i went wrong?

    mod_Hockey.java

    package net.minecraft.src;
    import java.util.Map;
    public class mod_Hockey extends BaseMod
    {
    							//add puck (item)
    	public static final Item Puck = new ItemPuck(1003).setItemName("Puck");
    
    	public mod_Hockey()
    	{
    
    							//puck (item)
    		ModLoader.AddName(Puck, "Puck");
    		Puck.iconIndex = ModLoader.addOverride("/gui/items.png","/hmod/ipuck.png");
    		ModLoader.AddRecipe(new ItemStack(Puck, 2), new Object[]{
    			"#", Character.valueOf('#'), Block.dirt
    		});
    
    	}
    
    	public void AddRenderer(Map map)
    	{
            map.put(EntityPuck.class, new RenderPuck());
    	}
    
    	public void load()
    	{
    	
    	}
    }


    i also have .java's of ItemPuck, EntityPuck, and RenderPuck....
    ItemPuck works (the stacksize is functioning)
    EntityPuck works (i messed with particles)

    RenderPuck cannot be tested because i keep getting the error:
    src/minecraft/net/minecraft/src/mod_Hockey.java:72: cannot find symbol
    symbol  : constructor RenderPuck()
    location: class net.minecraft.src.RenderPuck
            map.put(EntityPuck.class, new RenderPuck());
                                      ^


    Post your RenderPuck please
    Posted in: Modification Development
  • 1

    posted a message on Throwable entities and rendering
    Quote from matmoh11

    can you please further explain this?
    public void AddRenderer(Map map)
    {
            map.put(Entity******.class, new Render*******());
    }

    i understand where this goes, but what do i put for the ***'s ?

    '*******' is the name of your entity or render. I only put it there is because I don't know what yours is called. So example,
    public void AddRenderer(Map map)
    {
            map.put(EntitySpear.class, new RenderSpear());
    }

    This renders the entity and the render together so it knows what picture or model EntitySpear is. And then if you threw it, it would have a object now that you can see which is a spear not a blob.

    This just example, you can't just do that to make a spear.
    Posted in: Modification Development
  • To post a comment, please or register a new account.