August 2, 201411 yr What you're trying to do is achieved with renderers or stacked blocks, not larger textures. Minecraft only accepts equal sized textures that are powers of 2s. What everyone above has been telling you to do is fix your textures into 2 separate parts and get them working first before they can supply any more help. As for how to do this: Try looking at the actual code of the Sunflowers, Lilacs, Rose Bushes, and other flowers you're trying to mimic.
August 2, 201411 yr Author how do i make that 2 seperate parts like to first block grow and then another and its finished
August 2, 201411 yr how do i make that 2 seperate parts like to first block grow and then another and its finished Have a look at the vanilla BlockBush BlockDoublePlant class. That should tell you most of what you need to know.
August 2, 201411 yr https://github.com/tattyseal/Modjam4/blob/master/src/main/java/org/eep/api/BaseDoublePlant.java should help, ignore the methods like onBlockActivated, they are for my mod, and try not to copy code, try to learn from it.
August 2, 201411 yr Author I got crash when try to grow me plant : https://gist.github.com/CroComeT/edb6edcfd4b1ce066099
August 2, 201411 yr I got crash when try to grow me plant : https://gist.github.com/CroComeT/edb6edcfd4b1ce066099 I need to see your code.
August 3, 201411 yr Author Corn : https://gist.github.com/CroComeT/45fd0656ce3d9709f355 Tomato : https://gist.github.com/CroComeT/c2a8061864539e3dd11a
August 3, 201411 yr Author how do i add seed like to seed is food or custom item and it drops custom food
August 3, 201411 yr And I also said don't copy the code, write it yourself and learn from my code, and you copied it, thats not how you learn.
August 3, 201411 yr Author and i wanna to grow but to drop me food because i set me food to grow with it but it doesn't grow
August 4, 201411 yr If you want your block to grow with bonemeal you need to implement IGrowable. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
August 4, 201411 yr Author what with drop for me item i tried return (MainClass.Corn); and it not work minecraft than crash
August 4, 201411 yr Author it does not grow with bonemeal but its public class BlockCorn extends Block implements IPlantable, IGrowable
August 4, 201411 yr Author this is me drop option @Override public Item getItemDropped(int parMetadata, Random parRand, int parFortune){ // DEBUG System.out.println("BlockCorn getItemDropped()"); return (MainClass.tomato); } }
August 4, 201411 yr Post your code in gists, we have no clue what you are talking about. learn2grammar
August 4, 201411 yr Author Here are all me classes for this : now it drops 1 item because it was bug i need to fix it(it was leaving bottom or top block when break one) BlockTomato : https://gist.github.com/CroComeT/a4838d09dee2ec9d64f0 BlockCorn : https://gist.github.com/CroComeT/7f7be09cb17fdbcc5c33 Please help it not grow and it show top of plant when place on farmland with seed.
August 4, 201411 yr Author ItemSeedFood : https://gist.github.com/CroComeT/56e39cdd225ad7d6f980 Corn : https://gist.github.com/CroComeT/c53c9b5259e8b39eb30e Tomato : https://gist.github.com/CroComeT/4930271b0c00b657a974
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.