Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
688 B · 36 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536#include "stdafx.h"#include "net.minecraft.world.h"#include "RailTile.h"
RailTile::RailTile(int id) : BaseRailTile(id, false){}
Icon *RailTile::getTexture(int face, int data){ if (data >= 6) { return iconTurn; } else { return icon; }}
void RailTile::registerIcons(IconRegister *iconRegister){ BaseRailTile::registerIcons(iconRegister); iconTurn = iconRegister->registerIcon(getIconName() + L"_turned");}
void RailTile::updateState(Level *level, int x, int y, int z, int data, int dir, int type){ if (type > 0 && Tile::tiles[type]->isSignalSource()) { if (Rail(level, x, y, z).countPotentialConnections() == 3) { updateDir(level, x, y, z, false); } }}