Jump to content

hydroflame

Members
  • Posts

    1511
  • Joined

  • Last visited

Posts posted by hydroflame

  1. heu .. well yeah that makes sens

     

     

    model.render(deathorb, 0F, 0F, 0F, 0F, 0F, 0.0625f);

     

    thsi method calls the ModelBase model to render

     

    while a obj is a IModelCustom, a thing that you are never calling

     

     

    add this method inside modeldeathorb

     

    public void renderWavefront(){

        modelDeathOrb.renderAll();

    }

     

    edit:

    also obviously call renderWavefront instead of "render(deathorb, 0F, 0F, 0F, 0F, 0F, 0.0625f);"

  2. *flips tables*!

     

    Didn't we talk about how GUI's images are displayed just a few days ago ;)

    You know there are no convention with minecraft code  xP

     

    yes but gui, TESR and every Class<? extends Render> all have the same base

    push

    translate

    render

    pop

     

    while ISBRH is like :

     

    NOPE I DO WHAT I WANT *curse word also used for female dogs*!!!!

  3. well actually flenix its normal that your code doesnt work

     

    @Override

        @SideOnly(Side.CLIENT)

        public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {

                    Tessellator tess = Tessellator.instance;

                    GL11.glPushMatrix();

                    GL11.glTranslated(0, 1, 1);

                    tess.addVertexWithUV(0, 1, 1, 0, 0);

                    tess.addVertexWithUV(1, 1, 1, 0, 1);

                    tess.addVertexWithUV(1, 1, 0, 1, 1);

                    tess.addVertexWithUV(0, 1, 0, 1, 0);

                 

                    tess.addVertexWithUV(0, 0, 1, 0, 0);

                    tess.addVertexWithUV(0, 1, 1, 0, 1);

                    tess.addVertexWithUV(0, 1, 0, 1, 1);

                    tess.addVertexWithUV(0, 0, 0, 1, 0);

                    GL11.glPopMatrix();

            return true;

        }

     

    the bold line says "move from whatever i was to +0, 1, 1 

    it should be

    GL11.glTranslated(x, y, z);//the coordinates given by the function :)

  4. techne has to be the worst 3d model maker i have ever seen...cubes only?

    someone else share my opinion ?!?!?? this must be my birthday or something

     

    but yeah look on forge wii youll see my tutorial and just download like blender3d or something and start using wavefront (aka real men modeling)

  5. @gotolink, i can do even better :)

     

    import com.hydroflame.item.EquipementBase;

     

    import net.minecraft.inventory.IInventory;

    import net.minecraft.inventory.Slot;

    import net.minecraft.item.Item;

    import net.minecraft.item.ItemStack;

     

    public class SlotOnlyForClass extends Slot{
    private Class onlyFor;
    public SlotOnlyForClass(IInventory iinventory, int index, int x, int y, Class classrestriction) {
    	super(iinventory, index, x, y);
    	onlyFor = classrestriction;
    }
    
    public boolean isItemValid(ItemStack itemStack)
        {
    	return onlyFor.isAssignableFrom(Item.itemsList[itemStack.itemID].getClass());
        }
    }

     

    usage:

    this.addSlotToContainer(new SlotOnlyForClass(inventory, id, x, y, BlockOre.class));

     

     

    it will only accept BlockOre and any of its subclass :)

  6. heu .. ok well pastebin is blocked by my network

     

     

    but little tip n trick, when it says "quads" it mean any combinaison of 4 vertices

    so

    tess.addVertexWithUV(0, 0, 0, 0, 0)

    tess.addVertexWithUV(0, 0, 1, 0, 0)

    tess.addVertexWithUV(0, 1, 0, 0, 0)

    tess.addVertexWithUV(1, 0, 0, 0, 0)

     

    this is valid and tottally not a quad (i actually have no idea wtf it is though)

  7. @ingiethigny, you forgot the part where you need a hashmap to store every players walk distance, the way thsi is setup now mean that once one person start walking this will trigger the event  for everyone

  8. mcp/src/minecraft/assets/modid/textures/items/myitm.png

     

    Hi hydroflame,

     

    I was having the same problem as Channel_3, but setting up my files as you suggested fixed it. The only thing is I had to change the folder name and reference to lowercase. (And create all of the folders, of course.) Thanks!

    LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!!!!!!!!!!!!!!!!!!!!!

     

    no bro

  9. i use an ant build... 

    no actually ant build is super usefull

     

    but i made my own script (in bash) that does the equivalent, zip, sign and upload to my server automaticly :P

     

    @op if you care to learn ant it will be usefull, if you just want to do it the easy manual way, run those script

  10. oh ...my ... god, your mod is sooo cool :D

     

    i mean i would probably never use it because it would be super slow (well maybe i can think of cool stuff to do with it)

     

    but holy that is one of the coolest idea ever !

     

    edit: attend en plus tes francais ?!?!?! ok la cest bin trop cool !

×
×
  • Create New...

Important Information

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