Cuberite Forum
Features and missing features - 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: Features and missing features (/thread-499.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: Features and missing features - Luksor - 11-24-2012

(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


RE: Features and missing features - Jers - 11-25-2012

(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


RE: Features and missing features - Luksor - 11-25-2012

It should work. Maybe you forgot to add the file to Visual Studio project?Tongue


RE: Features and missing features - Jers - 11-25-2012

(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]



RE: Features and missing features - Luksor - 11-25-2012

I'm using an older version, but it should be similar:
[Image: vs.png]


RE: Features and missing features - Jers - 11-25-2012

(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


RE: Features and missing features - Luksor - 11-25-2012

What is not working? Do you get any compilation errors or something?


RE: Features and missing features - Jers - 11-25-2012

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


RE: Features and missing features - DubstepCraig - 12-06-2012

You also need to add a feature where cactus actually causes damage Smile


RE: Features and missing features - NiLSPACE - 12-21-2012

you can add double doors to features now Smile