|
@@ -3,9 +3,9 @@
|
|
|
#include "StaticRegistry.h"
|
|
|
// block types
|
|
|
#include "BasicBlocks.h"
|
|
|
+#include "Grass.h"
|
|
|
#include "NoBlock.h"
|
|
|
#include "TreeSeblingBlock.h"
|
|
|
-#include "Grass.h"
|
|
|
// dimensions
|
|
|
#include "OverworldDimension.h"
|
|
|
// entities
|
|
@@ -19,6 +19,7 @@
|
|
|
#include "AddEntityUpdate.h"
|
|
|
#include "EntityRemovedUpdate.h"
|
|
|
// Multiblocks
|
|
|
+#include "Hoe.h"
|
|
|
#include "LightSources.h"
|
|
|
#include "MultiblockTree.h"
|
|
|
|
|
@@ -58,7 +59,8 @@ void initializeBlockTypes()
|
|
|
"Oak Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
- (new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_OAK,
|
|
|
+ (new BasicBlockType(
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_OAK,
|
|
|
ItemTypeEnum::LEAVES_WOOD_OAK,
|
|
|
ModelInfo("cube", "blocks.ltdb/leaves.png", 6),
|
|
|
[](Vec3<int> pos) {
|
|
@@ -96,7 +98,8 @@ void initializeBlockTypes()
|
|
|
"Birch Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
- (new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_BIRCH,
|
|
|
+ (new BasicBlockType(
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_BIRCH,
|
|
|
ItemTypeEnum::LEAVES_WOOD_BIRCH,
|
|
|
ModelInfo("cube", "blocks.ltdb/leaves.png", 6),
|
|
|
[](Vec3<int> pos) {
|
|
@@ -116,7 +119,8 @@ void initializeBlockTypes()
|
|
|
"Beech Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
- (new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_BEECH,
|
|
|
+ (new BasicBlockType(
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_BEECH,
|
|
|
ItemTypeEnum::LEAVES_WOOD_BEECH,
|
|
|
ModelInfo("cube", "blocks.ltdb/leaves.png", 6),
|
|
|
[](Vec3<int> pos) {
|
|
@@ -142,7 +146,8 @@ void initializeBlockTypes()
|
|
|
"Pine Wood"))
|
|
|
->setHardness(1.4f)
|
|
|
->initializeDefault();
|
|
|
- (new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_PINE,
|
|
|
+ (new BasicBlockType(
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_PINE,
|
|
|
ItemTypeEnum::LEAVES_WOOD_PINE,
|
|
|
ModelInfo("cube", "blocks.ltdb/leaves.png", 6),
|
|
|
[](Vec3<int> pos) {
|
|
@@ -192,7 +197,8 @@ void initializeBlockTypes()
|
|
|
ItemTypeEnum::SEBLING_WOOD_PINE,
|
|
|
ModelInfo("blocks.m3/sebling", "blocks.ltdb/sebling.png", 1),
|
|
|
BlockTypeEnum::WOOD_PINE,
|
|
|
- BlockTypeEnum::LEAVES_WOOD_PINE, "Pine Wood Sebling"))
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_PINE,
|
|
|
+ "Pine Wood Sebling"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
(new GrassBlockType(BlockTypeEnum::GRASS,
|
|
@@ -200,6 +206,16 @@ void initializeBlockTypes()
|
|
|
ModelInfo("grass", "blocks.ltdb/grass.png", 16).setTransparent(),
|
|
|
"Grass"))
|
|
|
->initializeDefault();
|
|
|
+ (new BasicBlockType(BlockTypeEnum::FARMLAND,
|
|
|
+ ItemTypeEnum::DIRT,
|
|
|
+ ModelInfo("cube", {"blocks.ltdb/dirt.png",
|
|
|
+ "blocks.ltdb/dirt.png",
|
|
|
+ "blocks.ltdb/dirt.png",
|
|
|
+ "blocks.ltdb/dirt.png",
|
|
|
+ "blocks.ltdb/farmland.png",
|
|
|
+ "blocks.ltdb/dirt.png"}),
|
|
|
+ "Farmland"))
|
|
|
+ ->initializeDefault();
|
|
|
}
|
|
|
|
|
|
void initializeItemTypes()
|
|
@@ -391,7 +407,27 @@ void initializeItemTypes()
|
|
|
ModelInfo("itemCube", "blocks.ltdb/stone.png", 6),
|
|
|
[]() {
|
|
|
return ItemType::createBasicItem(ItemTypeEnum::STONE_TOOL_BROKEN,
|
|
|
- "Stone Tool",
|
|
|
+ "Broken Stone Tool",
|
|
|
+ 100.f,
|
|
|
+ 100.f,
|
|
|
+ 100.f,
|
|
|
+ 100.f,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
+ 0,
|
|
|
+ 10);
|
|
|
+ }));
|
|
|
+ new HoeToolItemType();
|
|
|
+ new NoBlockItemType(ItemTypeEnum::BROKEN_HOE,
|
|
|
+ "BrokenHoe",
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ ModelInfo("tools.m3/hoe", "tools.ltdb/stonehoe", 1),
|
|
|
+ []() {
|
|
|
+ return ItemType::createBasicItem(ItemTypeEnum::STONE_TOOL_BROKEN,
|
|
|
+ "Broken Hoe",
|
|
|
100.f,
|
|
|
100.f,
|
|
|
100.f,
|
|
@@ -402,6 +438,26 @@ void initializeItemTypes()
|
|
|
1,
|
|
|
0,
|
|
|
10);
|
|
|
+ });
|
|
|
+
|
|
|
+ (new NoBlockItemType(ItemTypeEnum::FLINT,
|
|
|
+ "Flint",
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ ModelInfo("items.m3/flint", "items.ltdb/flint.png", 1),
|
|
|
+ []() {
|
|
|
+ return ItemType::createBasicItem(ItemTypeEnum::FLINT,
|
|
|
+ "Flint",
|
|
|
+ 1.f,
|
|
|
+ 1.f,
|
|
|
+ 10.f,
|
|
|
+ 10.f,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ 1,
|
|
|
+ 0,
|
|
|
+ 50);
|
|
|
}));
|
|
|
}
|
|
|
|