Jump to content

Recommended Posts

Posted

hmmm, well ok thsi is obviously a problem with the aabb, can you try giving something more simple, like a standard 1x1x1 aabb, maybe just to see if it works or not :\

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted
but it shouldn't push me out with a special one either.

no no of course, but at least we know theres nothign super weird goign on

 

public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)

    {

        return AxisAlignedBB.getAABBPool().getAABB((double)par2 + this.minX, (double)par3 + this.minY, (double)par4 + this.minZ, (double)par2 + this.maxX, (double)par3 + this.maxY, (double)par4 + this.maxZ);

    }

vanilla is doign it a biiiit differently, im thinking maybe you have a mismatch :\, maybe try something that is closer to what vanilla is doing ?

or actually BlockHalfSlab doesnt even override that method.

 

ps: i dont really know whats the problem, im jsut trying to debug with you :)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

hmmm, i would try to copy the code for slab to try to at least make if different successfully, then try to make it change according to your rules.

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Carpets, the new 1/16th tall wool blocks have a selection box which is only 1/16 block in height.

Maybe you could look at them as well?

 

If you guys dont get it.. then well ya.. try harder...

Posted

time for today funny mojang code

 

BlockCarpet.java (extends Block btw)

 

protected void func_111047_d(int par1)
    {
        byte b0 = 0;
        float f = (float)(1 * (1 + b0)) / 16.0F;
        this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F);
    }

this function does NOT override anythign in Block

 

the argument par1 has absolutelly NO use in the function

b0 is specificly set to something :\

 

theres a "1*somethign"... why would you do that ?

 

 

basicly this is the same thing as:

this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1/16f, 1.0F);

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

not really, but were you able to make your hologram block the same size as the carpet ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

id try straight up extending carpet, try to make a new carpet and one by one add the features you need to that block

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

well i mean more like to find the root cause of this, id first try to make a copy of carpet, if it doesnt work then you have a serious problem, if it does then you can add features one by one and see which one is messing up the whole thing and why

 

or you could just try to copy everything related to the bounding box over first to see if that work, then slowly change into what you need

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

I'd recommend searching where the player walking is handled.

You might want to add

this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);

in your block constructor, since they are at least half blocks ;)

 

Overriding

public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
    

may be worth a shot.

Posted

I'd recommend searching where the player walking is handled.

You might want to add

this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);

in your block constructor, since they are at least half blocks ;)

 

Overriding

public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
    

may be worth a shot.

 

I'll try the collision boxes method

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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