Posted December 15, 201212 yr hey, I'm working on my mod called AgricultureCraft, I want to make my corn crop 2 high and it starts growing like seeds. how would I do it? problems: how to use a double high texture for the plant? how do I extend the bounding box as the plant grows? and, obvious, how to make it 2 blocks high? thanks for the responce!
December 15, 201212 yr I'm fairly certain you use two separate blocks, when the bottom block changes to for example meta data '3' you set the block above it to the other block, so it simulates a larger crop.
December 19, 201212 yr does anyone else have an idee how to do it? Zedicus explained how do it, when the crop's at a specific height (using metadata or another system) set the above block to the crop block. No one is going to code it for you and the hard part has been explained. Have a look at Minecraft's existing crops and code it.
December 23, 201212 yr World.java has a couple methods for setting a block at an arbitrary location to an arbitrary ID -- you probably want to look into those
December 24, 201212 yr for his idea you could add a onBlockUpdate() and then check if the metadata == 3 and then put a random update for the top part The Korecraft Mod
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.