the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 41 lines 838 B view raw
1#include "stdafx.h" 2#include "PressurePlateTile_SPU.h" 3#include "ChunkRebuildData.h" 4 5 6bool PressurePlateTile_SPU::isSolidRender(bool isServerLevel) 7{ 8 return false; 9} 10 11bool PressurePlateTile_SPU::blocksLight() 12{ 13 return false; 14} 15 16 17void PressurePlateTile_SPU::updateShape(ChunkRebuildData *level, int x, int y, int z, int forceData, TileEntity* forceEntity) // 4J added forceData, forceEntity param 18{ 19 bool pressed = level->getData(x, y, z) == 1; 20 21 float o = 1 / 16.0f; 22 if (pressed) 23 { 24 this->setShape(o, 0, o, 1 - o, 0.5f / 16.0f, 1 - o); 25 } 26 else 27 { 28 setShape(o, 0, o, 1 - o, 1 / 16.0f, 1 - o); 29 } 30} 31 32 33void PressurePlateTile_SPU::updateDefaultShape() 34{ 35 float x = 8 / 16.0f; 36 float y = 2 / 16.0f; 37 float z = 8 / 16.0f; 38 setShape(0.5f - x, 0.5f - y, 0.5f - z, 0.5f + x, 0.5f + y, 0.5f + z); 39 40} 41