the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3#include "GlobalEntity.h"
4#include "net.minecraft.world.level.tile.h"
5
6
7//class LightningBolt : public GlobalEntity
8class LightningBolt : public GlobalEntity
9{
10public:
11 eINSTANCEOF GetType() { return eTYPE_LIGHTNINGBOLT; }
12
13private:
14 static const int START_LIFE = 2;
15
16 int life;
17
18public:
19 __int64 seed;
20
21private:
22 int flashes;
23
24public:
25 LightningBolt(Level *level, double x, double y, double z);
26 virtual void tick();
27
28protected:
29 virtual void defineSynchedData();
30 virtual void readAdditionalSaveData(CompoundTag *tag);
31 virtual void addAdditonalSaveData(CompoundTag *tag);
32
33public:
34 bool shouldAlwaysRender();
35 virtual bool shouldRender(Vec3 *c);
36};