Posted July 20, 201312 yr 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
July 20, 201312 yr This gave no meaning check what "Opaque" means If you guys dont get it.. then well ya.. try harder...
July 21, 201312 yr Author This gave no meaning check what "Opaque" means maybe, opaqueCubeLookup? anny way you only looked what i typed wrong or what ? there was more than that in the question ..
July 21, 201312 yr 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. If you guys dont get it.. then well ya.. try harder...
July 21, 201312 yr Author 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
July 21, 201312 yr I'm not sure but some digging into the source should reveal it, start with world render and other client files If you guys dont get it.. then well ya.. try harder...
July 21, 201312 yr Author 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
July 21, 201312 yr Author Do you mean like this? lol yes exacly like that ....so ther is away to call out a other model
July 21, 201312 yr 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
July 21, 201312 yr Author 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 ??
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.