05-31-2012, 09:47 PM
Quote:What if you have one sugarcane block on top of another one, and bonemeal one of them? What if the bottom one?I'm pretty sure sugarcane code count overall sugarcane length in blocks (in order not to grow it to the sky... wait! sounds like a nice idea!)
And bonemeal-ing any block of sugarcane of non-maximum size should make it grow to full length.
You get block you right-clicked with bonemeal on, right? You can then check blocks at the bottom till you find ground and you can check few blocks up to calculate sugarcane length.... Meh, you know it better than me
Quote:You have the cWord:GetBlock() and cWorld:SetBlock() functions, that's all you needThing is: I don't want to replicate pumpkin code in plugin... No point, I think.
Quote:I think a generic cWorld::GrowFromBlock(BlockX, BlockY, BlockZ)Nice, I like it. It will allow several tricks, including insta-grow magic and stuff)