05-31-2012, 09:39 PM
You have the cWord:GetBlock() and cWorld:SetBlock() functions, that's all you need
Yeah, I know, the melon and pumpkin code is rather large. I'll see about exporting that somehow. I think a generic cWorld::GrowFromBlock(BlockX, BlockY, BlockZ) would do the trick So the server would know how to grow stuff, but deliberately not use that, only allow plugins to call it.
What if you have one sugarcane block on top of another one, and bonemeal one of them? What if the bottom one? Although, the same question arises with "grow 1 block".
Yeah, I know, the melon and pumpkin code is rather large. I'll see about exporting that somehow. I think a generic cWorld::GrowFromBlock(BlockX, BlockY, BlockZ) would do the trick So the server would know how to grow stuff, but deliberately not use that, only allow plugins to call it.
What if you have one sugarcane block on top of another one, and bonemeal one of them? What if the bottom one? Although, the same question arises with "grow 1 block".