-
Posts
41 -
Joined
-
Last visited
Everything posted by Maexx
-
In your Block Class don't return 24 for "getRenderType()" but "RenderKhufuCauldron.renderID" Then add this to your RenderKhufuCauldron class: public static final int renderID = RenderingRegistry.getNextAvailableRenderId(); This will get a free renderID for the renderer and the "getRenderType()" in your Block Class will return it as the render for your block.
-
Awesome! Another cool thing would be to stop drawing half on the way so you could make like a bowl or something I think this should go into the tutorial section of the wiki, so more people can play around with it…
-
Thank you a lot, I am going to try this right now You are probably right, but it is cool anyways...and if you use them in the right spots and not to often I think you could create some cool looking blocks
-
Yes, but I don't think you can stack the circles on top of each other to get a sphere, since they don't have any height. And you're right, if it is possible, it would generate way to much lag I found them under org.lwjgl.util.glu.Sphere , however I didn't manage to get any result in-game with them yet…
-
Hey, Thank you ! I extended your code a bit and got it working for a simple circle: Here is the Code: Here is what it gives me: It renders only from one side and is just a circle and no sphere, but I think this could get something Thank you, Max
-
Thanks for your reply! If you mean doing it like Mojang does it with the Dragon-Egg, by just adding many small boxes in a roundish shape, no. I mean making a perfect sphere without any edges
-
Hello all, I don't have that much experience with rendering (rendering a few simple custom models is all I have done so far), but I wanted to know weather it is possible to render Spheres, Parts of Spheres, Cylinders and all that cool stuff in minecraft. Now, because you practically can do anything in minecraft/java I am sure it is, but what would be necessary to do it ? Thanks, Max
-
Oh, thats why... I was wondering why 3.3 wasn't showing in terminal...I changed it to 2.7.3, now it displays the correct version number. And most important, Setting up Forge WORKED !! Thanks a lot man !!! :D
-
I updated Python to 3.3.0, It still doesn't work. Maybe I screwed up my computer But I wonder why it worked in 1.4.2 then ? Anyway, I'm going to try and do some standard repairing and cleaning out my hdd now, maybe there is just something wrong there. Thanks, Max
-
First of all, thank you for the answer Lex! Well, I'm on Mac OS X 10.6.8, The Terminal says it's Python 2.6.1. I'll look if there's an update available for my OS, update, and try it again
-
Hi All, I'm trying to install forge for my MCP on 1.4.4(it is updated, right?), I want to update my mod. On 1.4.2 everything worked just fine, but now, when running install.SH (I'm on a Mac) I get this error: As of now, I'm using the latest version of forge (6.3.0.372) and I also completely reinstalled MCP a couple of times, tried redownloading forge and so on. I'm getting a fresh minecraft.jar by creating a clean instance in MultiMC, and the server.jar is also fresh from minecraft.net. I know there are plenty of similar bug reports, I tried looking through all of them before posting, but none of the error-logs seem to have similar errors. Help is much appreciated Thanks, Max
-
MoreBlockz This mod just adds some nice textures to minecraft, for building and stuff. I'm always trying to add more, so please make suggestions! I know this is nothing too fancy, but I'm fairly new to modding, and I thought, why not share it ? Currently this mod adds 15 new Blocks, 12 new Slabs, 2 new Items and is using 9 BlockID's and 2 ItemID's (standard 501-509 and 5001-5002). So here are the Blocks in Overview: Special Blocks: Recipes: Here is the current config, so you get an idea of the BlockID's: Download and Install Just download it and put it in the mods folder, of course with forge installed. You can also install it on the FTB-Pack, it just changes the ID's http://dl.dropbox.com/u/47049865/MC/MoreBlockz/Maexx_MoreBlockzv05.zip Also, here is the Minecraft Forums Post: http://www.minecraftforum.net/topic/1542556-142forgesmp-more-blockz-mod/#entry18847017 Have fun with it! Ask any questions in the comments, and please make suggestions on how to improve this mod(better recipes, different textures, more blocks etc.)!
-
THANK YOU, that fixed the problem! And it makes perfect sense, too Thank you so much again
-
First, thank you for the answer! I added shouldSideBeRendered with just 'return true', but it didn't render.
-
Hello All, I am currently making a mod which adds a couple of new blocks with nice textures to Minecraft, and everything was pretty easy to do until I added halfslabs for the custom Blocks. The slabs show correctly in their "normal" bottom position and as double-slabs aswell, however when I place a top-slab the texture does not show. Here is a screenshot: Here is the code of the slab class: public class BlockConcreteSlab extends BlockHalfSlab { public BlockConcreteSlab(int par1, boolean slabtype) { super(par1, slabtype, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); this.setRequiresSelfNotify();//MultiBlock this.setLightOpacity(0);//Fixes most of the Halfslab lightning bugs } /* * The path to the texture file set as a string in CommonProxy */ public String getTextureFile(){ return CommonProxyMoreBlockz.TexturesPNG; } /* * The Texture of the Metadata Block starts at 0 and goes up to the value of the current Metadata */ public int getBlockTextureFromSideAndMetadata(int side, int metadata) { return 0 + metadata; } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return MoreBlockz.blockconcretesingleslab.blockID; } /* * Drops the right metadata */ public int damageDropped(int metadata) { return metadata; } /* * Makes HalfSlabs DoubleSlabs if they have the same BlockID and Metadata as the one you try to place down. */ public void onBlockPlacedBy(World par1World, int x, int y, int z, EntityLiving par5EntityLiving){ if(par1World.getBlockId(x, y - 1, z) == MoreBlockz.blockconcretesingleslab.blockID){ int metadata = par1World.getBlockMetadata(x, y, z) & 7; if(par1World.getBlockMetadata(x, y-1, z) == metadata ){ par1World.setBlockWithNotify(x, y, z, 0); //sets the block below to 0 par1World.setBlockAndMetadataWithNotify(x, y - 1, z, MoreBlockz.blockconcretedoubleslab.blockID, metadata); //makes the slab a double-slab of the same metadata type } } } /** * Returns an item stack containing a single instance of the current block type. 'par1' is the block's subtype/damage * and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null. */ protected ItemStack createStackedBlock(int par1) { return new ItemStack(MoreBlockz.blockconcretesingleslab.blockID, 2, par1 & 7); } /* * Needs to be there because of BlockHalfSlab.class, is not used */ @Override public String getFullSlabName(int var1) { // TODO Auto-generated method stub return null; } @SideOnly(Side.CLIENT) /** * Takes a block ID, returns true if it's the same as the ID for a stone or wooden single slab. */ private static boolean isBlockSingleSlab(int par0) { return par0 == MoreBlockz.blockconcretesingleslab.blockID; } /* * Single Slabs are shown in creative, but not double ones */ @SideOnly(Side.CLIENT) public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) { if (par1 != MoreBlockz.blockconcretedoubleslab.blockID){ for (int var4=0; var4<8;++var4) { //change number after 4< for more metadata blocks par3List.add(new ItemStack(par1, 1, var4)); } } } } It's probably a pretty simple fix, but I can't figure it out. Thanks, Max