Jump to content

How to add block shape??? a new block model??


EarthGuardian
 Share

Recommended Posts

he ya,

 

i was wondering how doe MC call the block shape ??

i know it has something to do with opaqueCubeLookup...

 

but went hat is false how do you make the pluck is place uses a other model? for example a smaller block 8x8x8 ?

the texture i can figure out myself...

 

but hos do u use a specific model ?? maybe use your own made model ? 8x8x8??

 

greets

Link to comment
Share on other sites

What I meant is that I have no clue as to what you are trying to say!

 

Your sentences makes no sense at all :(

So it's quite hard to dechiper the meaning of them.

 

thats sad :(

 

you know the block cobblestone had a moddel right ? dementions 16X16X16 3rd(pixels)

these dementions "models" are loaded somewere in minecraft.

 

my question would be were does it load that moddel ? in Block.block.java there is something calle opaqeueLookup this is te demention i think.

 

i jsut whant to understand how it does load that modelbox < i think its the name for the 16X16X16 moddel block.

 

i just whant to see if i can make a dirt block 8x8x8 dimentions

Link to comment
Share on other sites

i did allot of digging and found of the models are in the net.minecraft.client.models directory ..

but i cant relay see the block.java or Anny other blocks or monster entity's call out 1 of those models ... its really hard to find out how the blocks you place or the mobs you see call out the model they are.

 

guess IL dig some more but was hoping some ppl know hot to add your own model and cast it as a block (smaller block).

 

greets

Link to comment
Share on other sites

In your constructor for your block

This thing:

 

 

public BlockCable(int id, Material mat)

{

super(id, mat);

this.needsRandomTick = true;

setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F);

}

 

 

 

add this to it: setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F);

 

The numbers are (minX, minY, minZ, maxX, maxY, maxZ)

 

and then in the class add

 

public boolean isOpaqueCube()

{

return false;

}

 

Hope this helps

Link to comment
Share on other sites

In your constructor for your block

This thing:

 

 

public BlockCable(int id, Material mat)

{

super(id, mat);

this.needsRandomTick = true;

setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F);

}

 

 

 

 

 

add this to it: setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F);

 

The numbers are (minX, minY, minZ, maxX, maxY, maxZ)

 

and then in the class add

 

public boolean isOpaqueCube()

{

return false;

}

 

Hope this helps

 

that worked perfectly he he thx man.

now the new step i want to make hahaha

 

setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F);

 

to use that to load my own made model

 

iv been fooling around with it and cant quite get there yet ...

i have a whole model set up in a modelfile that extends ModelBase

 

so i cant just implement the boundary's in my block file .. because that extends block already ...

or can you make it extend 2 files ?? how ??

Link to comment
Share on other sites

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
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.

 Share



×
×
  • Create New...

Important Information

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