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