the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 30 lines 774 B view raw
1#pragma once 2 3#include "Tile_SPU.h" 4 5class WoolCarpetTile_SPU : public Tile_SPU 6{ 7public: 8 WoolCarpetTile_SPU(int id) : Tile_SPU(id) {} 9 10 Icon_SPU *getTexture(int face, int data) { return TileRef_SPU(cloth_Id)->getTexture(face, data); } 11 bool isSolidRender(bool isServerLevel = false) { return false; } 12 void updateDefaultShape() { updateShape(0); } 13 void updateShape(ChunkRebuildData *level, int x, int y, int z) { updateShape(level->getData(x, y, z)); } 14 15protected: 16 void updateShape(int data) 17 { 18 int height = 0; 19 float o = 1 * (1 + height) / 16.0f; 20 setShape(0, 0, 0, 1, o, 1); 21 } 22 23public: 24 bool shouldRenderFace(ChunkRebuildData *level, int x, int y, int z, int face) 25 { 26 if (face == 1) return true; 27 return Tile_SPU::shouldRenderFace(level, x, y, z, face); 28 29 } 30};