the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 36 lines 687 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.h" 3#include "net.minecraft.world.level.tile.h" 4#include "Feature.h" 5 6 7Feature::Feature() 8{ 9 this->doUpdate = false; 10} 11 12Feature::Feature(bool doUpdate) 13{ 14 this->doUpdate = doUpdate; 15} 16 17void Feature::applyFeature(Level *level, Random *random, int xChunk, int zChunk) 18{ 19} 20 21void Feature::placeBlock(Level *level, int x, int y, int z, int tile) 22{ 23 placeBlock(level, x, y, z, tile, 0); 24} 25 26void Feature::placeBlock(Level *level, int x, int y, int z, int tile, int data) 27{ 28 if (doUpdate) 29 { 30 level->setTileAndData(x, y, z, tile, data, Tile::UPDATE_ALL); 31 } 32 else 33 { 34 level->setTileAndData(x, y, z, tile, data, Tile::UPDATE_CLIENTS); 35 } 36}