Cuberite Forum
Farming - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Farming (/thread-451.html)

Pages: 1 2 3 4 5 6


RE: Farming - xoft - 06-11-2012

Those are believed to be a generator error. Sometimes they are even 6 blocks high.


RE: Farming - NiLSPACE - 06-17-2012

you can place sugar cane on the ground when there is no water next to it. and you can also place it on every block.


RE: Farming - cedeel - 06-18-2012

(06-17-2012, 10:18 PM)STR_Warrior Wrote: you can place sugar cane on the ground when there is no water next to it. and you can also place it on every block.

That's right Dodgy

Do other blocks follow the same pattern?


RE: Farming - NiLSPACE - 06-18-2012

not that i know. but maybe if someone is working on it he can also fix the torch, flowers, muchroom towers.


RE: Farming - xoft - 06-18-2012

There are actually many blocks that need more placement checks than is currently done. Why not make a class that works with a world and checks placed blocks on demand:
Code:
class cBlockPlacement
{
public:
    cBlockPlacement(cWorld * a_World);

    bool CanPlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
} ;

...

class cWorld
{
    ...
    cBlockPlacement m_BlockPlacement;
    ...
} ;

Also, the checker class should be Lua-exported


RE: Farming - Luksor - 06-18-2012

(06-18-2012, 03:20 AM)xoft Wrote: There are actually many blocks that need more placement checks than is currently done. Why not make a class that works with a world and checks placed blocks on demand:
Code:
class cBlockPlacement
{
public:
    cBlockPlacement(cWorld * a_World);

    bool CanPlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
} ;

...

class cWorld
{
    ...
    cBlockPlacement m_BlockPlacement;
    ...
} ;

Also, the checker class should be Lua-exported
Great idea! Wink



RE: Farming - cedeel - 06-18-2012

(06-18-2012, 03:20 AM)xoft Wrote: There are actually many blocks that need more placement checks than is currently done. Why not make a class that works with a world and checks placed blocks on demand:
...
Also, the checker class should be Lua-exported

Are you working on this? I don't want to duplicate effort needlessly.


RE: Farming - xoft - 06-18-2012

No, I'm not. Feel free to do this.

I think there's already some code in cClientHandle::HandlePlaceBlock() that ought to be moved into the checker, so that's a nice start.


RE: Farming - NiLSPACE - 06-20-2012

can you also make vines growable with bonemeal?


RE: Farming - xoft - 06-20-2012

How do you propose they should grow when bonemealed? As far as I know, vines attached to a wall can grow in 4 directions (up, down, 2x sideways) so there's no "indisputable" way of growing. Or perhaps we could do something like tall grass - the vines would spread to a few random neighboring blocks? Or should they only grow downwards all the way till they touch the ground? What if already at ground level, should bonemeal be consumed?