* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
#include "stdafx.h"
|
|
#include "net.minecraft.world.item.h"
|
|
#include "DyePowderItem.h"
|
|
#include "Tile.h"
|
|
#include "Recipy.h"
|
|
#include "Recipes.h"
|
|
#include "OreRecipies.h"
|
|
|
|
void OreRecipies::_init()
|
|
{
|
|
ADD_OBJECT(map[0],Tile::goldBlock);
|
|
ADD_OBJECT(map[0],new ItemInstance(Item::goldIngot, 9));
|
|
|
|
ADD_OBJECT(map[1],Tile::ironBlock);
|
|
ADD_OBJECT(map[1],new ItemInstance(Item::ironIngot, 9));
|
|
|
|
ADD_OBJECT(map[2],Tile::diamondBlock);
|
|
ADD_OBJECT(map[2],new ItemInstance(Item::diamond, 9));
|
|
|
|
ADD_OBJECT(map[3],Tile::emeraldBlock);
|
|
ADD_OBJECT(map[3],new ItemInstance(Item::emerald, 9));
|
|
|
|
ADD_OBJECT(map[4],Tile::lapisBlock);
|
|
ADD_OBJECT(map[4],new ItemInstance(Item::dye_powder, 9, DyePowderItem::BLUE));
|
|
|
|
ADD_OBJECT(map[5],Tile::redstoneBlock);
|
|
ADD_OBJECT(map[5],new ItemInstance(Item::redStone, 9));
|
|
|
|
ADD_OBJECT(map[6],Tile::coalBlock);
|
|
ADD_OBJECT(map[6],new ItemInstance(Item::coal, 9, CoalItem::STONE_COAL));
|
|
|
|
ADD_OBJECT(map[7],Tile::hayBlock);
|
|
ADD_OBJECT(map[7],new ItemInstance(Item::wheat, 9));
|
|
}
|
|
void OreRecipies::addRecipes(Recipes *r)
|
|
{
|
|
for (int i = 0; i < MAX_ORE_RECIPES; i++)
|
|
{
|
|
Tile *from = (Tile*) map[i].at(0)->tile;
|
|
ItemInstance *to = (ItemInstance*) map[i].at(1)->iteminstance;
|
|
r->addShapedRecipy(new ItemInstance(from), //
|
|
L"sssczg",
|
|
L"###", //
|
|
L"###", //
|
|
L"###", //
|
|
|
|
L'#', to,
|
|
L'D');
|
|
|
|
r->addShapedRecipy(to, //
|
|
L"sctg",
|
|
L"#", //
|
|
|
|
L'#', from,
|
|
L'D');
|
|
}
|
|
}
|
|
|
|
|