|
@@ -36,21 +36,25 @@ void initializeBlockTypes()
|
|
|
"blocks.ltdb/dirt.png",
|
|
|
"blocks.ltdb/dirt.png",
|
|
|
"blocks.ltdb/lawn.png",
|
|
|
- "blocks.ltdb/dirt.png"})))
|
|
|
+ "blocks.ltdb/dirt.png"}),
|
|
|
+ "Dirt"))
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::STONE,
|
|
|
ItemTypeEnum::STONE,
|
|
|
- ModelInfo("cube", "blocks.ltdb/stone.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/stone.png", 6),
|
|
|
+ "Stone"))
|
|
|
->setHardness(2.f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::SAND,
|
|
|
ItemTypeEnum::SAND,
|
|
|
- ModelInfo("cube", "blocks.ltdb/sand.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/sand.png", 6),
|
|
|
+ "Sand"))
|
|
|
->setHardness(0.5f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::WOOD_OAK,
|
|
|
ItemTypeEnum::WOOD_OAK,
|
|
|
- ModelInfo("cube", "blocks.ltdb/oak.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/oak.png", 6),
|
|
|
+ "Oak Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_OAK,
|
|
@@ -62,28 +66,33 @@ void initializeBlockTypes()
|
|
|
BlockTypeEnum::LEAVES_WOOD_OAK, 0, pos);
|
|
|
block->addSpawn({1, 1, 0.015, ItemTypeEnum::SEBLING_WOOD_OAK});
|
|
|
return (Block*)block;
|
|
|
- }))
|
|
|
+ },
|
|
|
+ "Oak Wood Leaves"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
|
|
|
(new BasicBlockType(BlockTypeEnum::GRAVEL,
|
|
|
ItemTypeEnum::GRAVEL,
|
|
|
- ModelInfo("cube", "blocks.ltdb/gravel.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/gravel.png", 6),
|
|
|
+ "Gravel"))
|
|
|
->setHardness(0.75f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::STONE_GRANITE,
|
|
|
ItemTypeEnum::STONE_GRANITE,
|
|
|
- ModelInfo("cube", "blocks.ltdb/granite.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/granite.png", 6),
|
|
|
+ "Granite Stone"))
|
|
|
->setHardness(3.f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::STONE_COBBLE,
|
|
|
ItemTypeEnum::STONE_COBBLE,
|
|
|
- ModelInfo("cube", "blocks.ltdb/cobble.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/cobble.png", 6),
|
|
|
+ "Cobble Stone"))
|
|
|
->setHardness(1.f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::WOOD_BIRCH,
|
|
|
ItemTypeEnum::WOOD_BIRCH,
|
|
|
- ModelInfo("cube", "blocks.ltdb/birch.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/birch.png", 6),
|
|
|
+ "Birch Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_BIRCH,
|
|
@@ -95,13 +104,15 @@ void initializeBlockTypes()
|
|
|
BlockTypeEnum::LEAVES_WOOD_BIRCH, 0, pos);
|
|
|
block->addSpawn({1, 1, 0.03, ItemTypeEnum::SEBLING_WOOD_BIRCH});
|
|
|
return (Block*)block;
|
|
|
- }))
|
|
|
+ },
|
|
|
+ "Birch Wood Leaves"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
|
|
|
(new BasicBlockType(BlockTypeEnum::WOOD_BEECH,
|
|
|
ItemTypeEnum::WOOD_BEECH,
|
|
|
- ModelInfo("cube", "blocks.ltdb/beech.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/beech.png", 6),
|
|
|
+ "Beech Wood"))
|
|
|
->setHardness(1.5f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_BEECH,
|
|
@@ -113,18 +124,21 @@ void initializeBlockTypes()
|
|
|
BlockTypeEnum::LEAVES_WOOD_BEECH, 0, pos);
|
|
|
block->addSpawn({1, 1, 0.02, ItemTypeEnum::SEBLING_WOOD_BEECH});
|
|
|
return (Block*)block;
|
|
|
- }))
|
|
|
+ },
|
|
|
+ "Beech Wood Leaves"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
|
|
|
(new BasicBlockType(BlockTypeEnum::STONE_BASALT,
|
|
|
ItemTypeEnum::STONE_BASALT,
|
|
|
- ModelInfo("cube", "blocks.ltdb/basalt.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/basalt.png", 6),
|
|
|
+ "Basalt Stone"))
|
|
|
->setHardness(2.f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::WOOD_PINE,
|
|
|
ItemTypeEnum::WOOD_PINE,
|
|
|
- ModelInfo("cube", "blocks.ltdb/pine.png", 6)))
|
|
|
+ ModelInfo("cube", "blocks.ltdb/pine.png", 6),
|
|
|
+ "Pine Wood"))
|
|
|
->setHardness(1.4f)
|
|
|
->initializeDefault();
|
|
|
(new BasicBlockType(BlockTypeEnum::LEAVES_WOOD_PINE,
|
|
@@ -136,13 +150,15 @@ void initializeBlockTypes()
|
|
|
BlockTypeEnum::LEAVES_WOOD_PINE, 0, pos);
|
|
|
block->addSpawn({1, 1, 0.025, ItemTypeEnum::SEBLING_WOOD_PINE});
|
|
|
return (Block*)block;
|
|
|
- }))
|
|
|
+ },
|
|
|
+ "Pine Wood Leaves"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
|
|
|
(new BasicLightSourceBlockType(BlockTypeEnum::TORCH,
|
|
|
ItemTypeEnum::TORCH,
|
|
|
- ModelInfo("blocks.m3/torch", "blocks.ltdb/torch.png", 6)))
|
|
|
+ ModelInfo("blocks.m3/torch", "blocks.ltdb/torch.png", 6),
|
|
|
+ "Torch"))
|
|
|
->setHardness(0.f)
|
|
|
->setColor(0x00F69A54)
|
|
|
->initializeDefault();
|
|
@@ -151,28 +167,31 @@ void initializeBlockTypes()
|
|
|
ItemTypeEnum::SEBLING_WOOD_OAK,
|
|
|
ModelInfo("blocks.m3/sebling", "blocks.ltdb/sebling.png", 1),
|
|
|
BlockTypeEnum::WOOD_OAK,
|
|
|
- BlockTypeEnum::LEAVES_WOOD_OAK))
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_OAK,
|
|
|
+ "Oak Wood Sebling"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
(new TreeSeblingBlockType(BlockTypeEnum::SEBLING_WOOD_BIRCH,
|
|
|
ItemTypeEnum::SEBLING_WOOD_BIRCH,
|
|
|
ModelInfo("blocks.m3/sebling", "blocks.ltdb/sebling.png", 1),
|
|
|
BlockTypeEnum::WOOD_BIRCH,
|
|
|
- BlockTypeEnum::LEAVES_WOOD_BIRCH))
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_BIRCH,
|
|
|
+ "Birch Wood Sebling"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
(new TreeSeblingBlockType(BlockTypeEnum::SEBLING_WOOD_BEECH,
|
|
|
ItemTypeEnum::SEBLING_WOOD_BEECH,
|
|
|
ModelInfo("blocks.m3/sebling", "blocks.ltdb/sebling.png", 1),
|
|
|
BlockTypeEnum::WOOD_BEECH,
|
|
|
- BlockTypeEnum::LEAVES_WOOD_BEECH))
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_BEECH,
|
|
|
+ "Beech Wood Sebling"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
(new TreeSeblingBlockType(BlockTypeEnum::SEBLING_WOOD_PINE,
|
|
|
ItemTypeEnum::SEBLING_WOOD_PINE,
|
|
|
ModelInfo("blocks.m3/sebling", "blocks.ltdb/sebling.png", 1),
|
|
|
BlockTypeEnum::WOOD_PINE,
|
|
|
- BlockTypeEnum::LEAVES_WOOD_PINE))
|
|
|
+ BlockTypeEnum::LEAVES_WOOD_PINE, "Pine Wood Sebling"))
|
|
|
->setHardness(0.1f)
|
|
|
->initializeDefault();
|
|
|
}
|