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 "LargeChestModel.h"
3#include "ModelPart.h"
4
5LargeChestModel::LargeChestModel()
6{
7 lid = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
8 lid->addBox(0.0f, -5.0f, -14.0f, 14+16, 5, 14, 0.0f);
9 lid->x = 1;
10 lid->y = 7;
11 lid->z = 15;
12
13 lock = ((new ModelPart(this, 0, 0)))->setTexSize(128, 64);
14 lock->addBox(-1.0f, -2.0f, -15.0f, 2, 4, 1, 0.0f);
15 lock->x = 8+8;
16 lock->y = 7;
17 lock->z = 15;
18
19 bottom = ((new ModelPart(this, 0, 19)))->setTexSize(128, 64);
20 bottom->addBox(0.0f, 0.0f, 0.0f, 14+16, 10, 14, 0.0f);
21 bottom->x = 1;
22 bottom->y = 6;
23 bottom->z = 1;
24
25 // 4J added - compile now to avoid random performance hit first time cubes are rendered
26 lid->compile(1.0f/16.0f);
27 lock->compile(1.0f/16.0f);
28 bottom->compile(1.0f/16.0f);
29}