Jump to content

hydroflame

Members
  • Posts

    1511
  • Joined

  • Last visited

Posts posted by hydroflame

  1. after setting the new nbt, did you write anythign to it? because if not thats kindof normal

     

    public class vec3{
    public float x = 0, y = 0, z = 0;
    }
    
    
    in program:
    vec3 = new vec3();
    println(vec3.x);
    
    "oh its 0 :\"
    "yeah thats normal"
    

     

    or are you legitimatelly writing to it and its not apparing :P

  2. public void openChest()
    {
    	if(bagpack.hasTagCompound())
    	{
    		System.out.println("hastag");//never gets printed
    		readFromNBT(bagpack.getTagCompound());
    	}
    }

    well this code alone will not make bagpack magicly have a tagCompount

     

    you should have a else then set a new tag compound like gotolink said in his post

     

    public void openChest()
    {
    	if(bagpack.hasTagCompound())
    	{
    		System.out.println("hastag");//never gets printed
    		readFromNBT(bagpack.getTagCompound());
    	}else{
                        bagpack.stackTagCompound = new NBTTagCompound();//im assuming that bagpack is an instance of ItemStack .. ?? ?
                    }
    }

  3. well what you are trying to do is obviously possible, did you even debug at all?? try to check where it was saving/not saving

     

    System.out.println("text");

    System.out.println("the value of derp is: "+derp);

     

    or even

     

    try{

    throw new Exception("weird thing happenning here !");

    }catch(Exception e{

    e.printStackTrace();

    }

     

    if you really need ?

     

    i dont knwo just by looking at it whats wrong, but i know what you are trying to do is not impossible

  4. hmmm.. i cant really say "aaahh go open source because open source is good" becuase my own mod is closed source, but heres the thing. as far as i can see your mod doesnt have any huge/unique features that other peopel might want to "steal" (if thats what you're afraid of)

     

    and 2, you could use bitbucket, which the private repo option is free so it would make things a lot easier :)

     

    not forcing you just showing you different options :), ill still take a look at the code once i have time even if its not on a repo

  5.  

    @Override

        public void doRender(Entity entity, double d0, double d1, double d2,

        float f, float f1)

        {

        GL11.glPushMatrix();

        GL11.glPopMatrix();

        GL11.glRotatef(90F, 0F, 1.0F, 0.0F);

        }

    dafuq is this ?

     

    lets place this into my gl-to-english translator

     

    String glCode = "GL11.glPushMatrix();
    GL11.glPopMatrix();
    GL11.glRotatef(90F, 0F, 1.0F, 0.0F);"
    String englishOutput = GLTranslator.translateGlCode(glCode);
    System.out.println(englishOutput);

    console:

    -save the current matrix state

    -restore the latest matrix state//2 statement which togheter do absolutelly nothing

    -rotate the whole world with the quaternion (90, 0, 1, 0)//yes you will mess everything up with this

  6. because we need a block place event too

     

     

    and reflection is slower, sure asm takes some time to implement but once its working its native java speed. since block place/break event are one of the few things preventing forge from being a good high population mod it would be nice to have those integrated within standard forge.

  7. @mazetar, take it easy, have you ever spend some time on minecraftforums>mods>request ? if not i recommend you read the first few post. these people are ignorant and impolite. at least people on the board underatand that it takes some work to get a mod doneand most of them  are willing to learn(even though for some of them "learn" = "copy paste")

    at least op demonstrate that he is able to search  for answers, he makes a mention to glBindTexture which i have rarely seen metionned elsewhere (glBindTextureis the method called by TextureManager btw )

    the real question is, op why do you need getTexture ?

  8. @gotolink: yeah thats what i tought too BUT

    http://www.minecraftforge.net/forum/index.php/topic,3094.msg20926.html#msg20926, one of my very first thread :')

    give it a read you'll understand why RIGHT_CLICK_BLOCK is wrong :\

     

    @dies if they are havign bukkit overhead they are doing it wrong

    also, left_blick_block also has a bug with it and cant be use fully as a block break event (video demonstration:

    in this video i am adding exp everytime a Left_click_block event is fired, which obviously isnt enough, i would also like to know how gotolink does that)

×
×
  • Create New...

Important Information

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