the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 25 lines 628 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.h" 3#include "TransparentTile.h" 4 5TransparentTile::TransparentTile(int id, Material *material, bool allowSame, bool isSolidRender) : Tile(id, material,isSolidRender) 6{ 7 this->allowSame = allowSame; 8} 9 10bool TransparentTile::isSolidRender(bool isServerLevel) 11{ 12 return false; 13} 14 15bool TransparentTile::shouldRenderFace(LevelSource *level, int x, int y, int z, int face) 16{ 17 int id = level->getTile(x, y, z); 18 if (!allowSame && id == this->id) return false; 19 return Tile::shouldRenderFace(level, x, y, z, face); 20} 21 22bool TransparentTile::blocksLight() 23{ 24 return false; 25}