Jump to content

tattyseal

Forge Modder
  • Posts

    194
  • Joined

  • Last visited

Posts posted by tattyseal

  1. For now my mod is for client. The informations about nearest village player can see in my own gui.

    Crash report indicates that with second line of the code below something is wrong.

            BetterWorldHandler handler = new BetterWorldHandler();
            BetterVillageCollection vlgc = handler.villageCollectionObj;
    

     

    diesieben07 has said before, we need those crash reports to help you...

  2. You have done the register wrong, for example

     

    GameRegistry.registerShapedRecipe(new ItemStack(MyModClass.coalOnAStick, 1), "XOX", "OXO", "XOX", 'X', new ItemStack(Items.coal, 1), 'O', new ItemStack(Items.stick, 1));
    

     

    Where 'X' represents X in "XOX" and "OXO" and 'O' represents O in "XOX" and "OXO", and adding more items just do the identifier first then then itemstack like I show eg:

     

    'A', new ItemStack(Items.apple, 1)
    

     

    Would look like

    GameRegistry.registerShapedRecipe(new ItemStack(MyModClass.coalOnAStick, 1), "XOX", "OXO", "XOX", 'X', new ItemStack(Items.coal, 1), 'O', new ItemStack(Items.stick, 1), 'A', new ItemStack(Items.apple, 1));
    

  3. You can use this custom method that does not need a 256x Texture

     

    public static void drawTexturedQuadFit(double x, double y, double width, double height, double zLevel)
    {
    Tessellator tessellator = Tessellator.instance;
            tessellator.startDrawingQuads();
            tessellator.addVertexWithUV(x + 0, y + height, zLevel, 0,1);
            tessellator.addVertexWithUV(x + width, y + height, zLevel, 1, 1);
            tessellator.addVertexWithUV(x + width, y + 0, zLevel, 1,0);
            tessellator.addVertexWithUV(x + 0, y + 0, zLevel, 0, 0);
            tessellator.draw();
    }
    

×
×
  • Create New...

Important Information

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