Cuberite Forum

Full Version: Features and missing features
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
(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
(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
It should work. Maybe you forgot to add the file to Visual Studio project?Tongue
(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]
I'm using an older version, but it should be similar:
[Image: vs.png]
(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
What is not working? Do you get any compilation errors or something?
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
You also need to add a feature where cactus actually causes damage Smile
you can add double doors to features now Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14