05-31-2012, 08:56 PM
And long long grass on the ground
Farming
|
05-31-2012, 08:56 PM
And long long grass on the ground
05-31-2012, 09:15 PM
I was thinking that for melons and pumpkins would be nice if it took one bonemeal to grow the stem fully and then one click to grow the produce. So for 2 bonemeals you could get a melon (unless there was something obstructing the growth, of course).
Again, this would be a difference from the vanilla server, the question is, do we want to go that way? It might be better to make this into an optional plugin instead. So, the full list for bonemeal-able stuff: - wheat - pumpkins (1 bonemeal for stem, then one bonemeal per pumpkin) - melons (ditto) - saplings - sugarcane (1 bonemeal = grow 1 block or grow to full height?) - cactus (1 bonemeal = grow 1 block or grow to full height?) - mushrooms (produces giant mushrooms) - grass (produces tall grass, flowers) - nether wart (I will edit this list if I forgot anything) One more proposal: bonemeal-ing dirt could change it to grass if there's enough light and there's a non-solid block on top of it. How about it? Quote:It might be better to make this into an optional plugin instead.True. I can write such a plugin (pretty easy), but I need some way to force melon/pumpkin to grow the produce (maybe exported to lua function?))) Quote:bonemeal-ing dirt could change it to grass if there's enough light and there's a non-solid block on top of it. How about it?Nice. But it should be a plugin too Quote:- sugarcane (1 bonemeal = grow 1 block or grow to full height?)Full, I think. Bonemeal causes sapling to form a proper tree - so no logical obstacles there.
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".
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)
05-31-2012, 09:50 PM
Insta-grow is (kinda) already done in the sTicks plugin - simply by forcing chunk's blocktick to update the block, it results in growth on that block.
when i place pumpkin seeds and let them grow with the sTick plugin the "Seed" wil be replaced for the pumpkin.
and there is not yet an legit way to get seeds (wheat, pumpkin, melon) or sugar cane.
05-31-2012, 11:59 PM
weird, I specifically tried pumpkins and they grew okay. I'll retry, more carefully.
06-01-2012, 12:03 AM
or you try to connect to my server you still have my IP??
06-01-2012, 02:48 AM
Found the problem, fixed in Rev 530.
That one was tricky. I knew where a part of the problem was, but I couldn't, for the life of me, figure out how it could actually overwrite the stem. The only possible code path I found was that no melon got generated. But finally it dawned on me, we were having a buffer overflow at the very same time! Yuck! |
« Next Oldest | Next Newest »
|