the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.level.h"
3#include "LockedChestTile.h"
4
5LockedChestTile::LockedChestTile(int id) : Tile(id, Material::wood)
6{
7}
8
9bool LockedChestTile::mayPlace(Level *level, int x, int y, int z)
10{
11 return true;
12}
13
14void LockedChestTile::tick(Level *level, int x, int y, int z, Random *random)
15{
16 level->removeTile(x, y, z);
17}
18
19void LockedChestTile::registerIcons(IconRegister *iconRegister)
20{
21 // None
22}