Features and missing features
#31
(11-24-2012, 11:43 PM)Jers Wrote: I wanted to fix it, but I have not found BlockMycelium.h Smile
There was no such file, I added it. Wink
Reply
Thanks given by:
#32
(11-24-2012, 11:50 PM)Luksor Wrote:
(11-24-2012, 11:43 PM)Jers Wrote: I wanted to fix it, but I have not found BlockMycelium.h Smile
There was no such file, I added it. Wink
How?
I Add BlockMycelium.h
Code:
#pragma once

#include "BlockHandler.h" //Это по любому нужно




class cBlockMyceliumHandler :
    public cBlockHandler
{
public:
    cBlockMyceliumHandler(BLOCKTYPE a_BlockType)
        : cBlockHandler(a_BlockType)
    {
    }
    virtual const char * GetStepSound(void) override//Я тут получаю звук для блока
    {
        return "step.gravel";
    }
    virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override//Тут при ломании блока появляется земля, но смотри
    {
        a_Pickups.push_back(cItem(E_ITEM_DIRT, 1, 0));
    }
} ;
And write in BlockHandler.cpp
Code:
#include "BlockMycelium.h"
Code:
case E_BLOCK_MYCELIUM:              return new cBlockMyceliumHandler        (a_BlockType);
But mycelium dont work
Reply
Thanks given by:
#33
It should work. Maybe you forgot to add the file to Visual Studio project?Tongue
Reply
Thanks given by: Jers
#34
(11-25-2012, 04:56 AM)Luksor Wrote: It should work. Maybe you forgot to add the file to Visual Studio project?Tongue
How to do it? HuhUndecided
[Image: 3307180.png]
Reply
Thanks given by:
#35
I'm using an older version, but it should be similar:
[Image: vs.png]
Reply
Thanks given by: Jers
#36
(11-25-2012, 05:13 AM)Luksor Wrote: I'm using an older version, but it should be similar:
[Image: vs.png]
thank you, but it dont workSad
Reply
Thanks given by:
#37
What is not working? Do you get any compilation errors or something?
Reply
Thanks given by: Jers
#38
When I break the power of mycelium, falls mycelium, but i need to give out dirt
Code:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
    {
        a_Pickups.push_back(cItem(E_ITEM_DIRT, 11, 0)); //wtf dont work!
    }

Error Smile
Error 1 fatal error C1083: Cannot open file include: BlockMycelium.h: No such file or directory c:\Users\Oleg\Downloads\MCServer_1024_src\MCServer_1024\source\blocks\BlockHandler.cpp 10
I corrected the mistake and earned mycelium Thank you
Reply
Thanks given by:
#39
You also need to add a feature where cactus actually causes damage Smile
Reply
Thanks given by:
#40
you can add double doors to features now Smile
Reply
Thanks given by:




Users browsing this thread: 10 Guest(s)