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.
1.4 kB · 45 lines
C++
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546#include "stdafx.h"#include "User.h"#include "..\Minecraft.World\net.minecraft.world.level.tile.h"
vector<Tile *> User::allowedTiles;
void User::staticCtor(){ allowedTiles.push_back(Tile::stone); allowedTiles.push_back(Tile::cobblestone); allowedTiles.push_back(Tile::redBrick); allowedTiles.push_back(Tile::dirt); allowedTiles.push_back(Tile::wood); allowedTiles.push_back(Tile::treeTrunk); allowedTiles.push_back(Tile::leaves); allowedTiles.push_back(Tile::torch); allowedTiles.push_back(Tile::stoneSlabHalf);
allowedTiles.push_back(Tile::glass); allowedTiles.push_back(Tile::mossyCobblestone); allowedTiles.push_back(Tile::sapling); allowedTiles.push_back(Tile::flower); allowedTiles.push_back(Tile::rose); allowedTiles.push_back(Tile::mushroom_brown); allowedTiles.push_back(Tile::mushroom_red); allowedTiles.push_back(Tile::sand); allowedTiles.push_back(Tile::gravel); allowedTiles.push_back(Tile::sponge);
allowedTiles.push_back(Tile::wool); allowedTiles.push_back(Tile::coalOre); allowedTiles.push_back(Tile::ironOre); allowedTiles.push_back(Tile::goldOre); allowedTiles.push_back(Tile::ironBlock); allowedTiles.push_back(Tile::goldBlock); allowedTiles.push_back(Tile::bookshelf); allowedTiles.push_back(Tile::tnt); allowedTiles.push_back(Tile::obsidian);}
User::User(const wstring& name, const wstring& sessionId){ this->name = name; this->sessionId = sessionId;}