ToiletBlock::ToiletBlock(int id, Material const& material) : RotatableBlock("blockToilet", id, material) {
	setSolid(false);
	
	setSoundType(Block::SOUND_STONE);
	setDestroyTime(1.0F);
	tex = getTextureUVCoordinateSet("quartz_block", 0);
}
Exemplo n.º 2
0
BlockBasic::BlockBasic(int blockId, const std::string& assetName) :
	Block(assetName, blockId, assetName, Material::mMaterials[3]) {
	setDestroyTime(1.0F);
	setExplodeable(15.0F);
	creativeCategory = 0;
	initTextures();
}
ChairBlock::ChairBlock(int id, std::string name, FurnitureBlockAttributes attributes, int item) : RotatableBlock("blockChair", id, attributes.realMaterial) {
	setSolid(false);

	setSoundType(attributes.sounds);
	setDestroyTime(attributes.hardness);
	tex = attributes.primary_tex;
	secondary_tex = attributes.secondary_tex;
	this->droppedItem = item;
}
Exemplo n.º 4
0
RedstoneWireTile::RedstoneWireTile(int blockId, const std::string& texture, const Material* material) : Tile(blockId, texture, material) {
	init();
	renderType = 5;
	renderPass = 3;
	setVisualShape(0.0F, 0.0F, 0.0F, 1.0F, 0.0625F, 1.0F);
	Tile::solid[blockId] = false;
	Tile::lightBlock[blockId] = 0;
	setDestroyTime(0.0F);
	setNameId("redstoneDust");
}
CoffeeTableTile::CoffeeTableTile(int id, std::string name, FurnitureTileAttributes attributes, int item) : FurnitureTile(id, attributes.realMaterial) {
	Tile::solid[id] = false;
	Tile::lightBlock[id] = 0;

	setNameId(name);
	setSoundType(attributes.sounds);
	setDestroyTime(attributes.hardness);
	tex = attributes.primary_tex;
	secondary_tex = attributes.secondary_tex;
	droppedItem = item;
}
Exemplo n.º 6
0
PistonArmTile::PistonArmTile(int blockId) : Tile(blockId, &Material::stone) {
	init();
	
	setDestroyTime(0.5F);
	setNameId("piston_extension");
	renderType = 17;
	creativeTab = CreativeTab::ITEMS;
	Tile::solid[blockId] = false;
	Tile::lightBlock[blockId] = 0;

	tex = getTextureUVCoordinateSet("piston_top_normal", 0);
	texture_sticky = getTextureUVCoordinateSet("piston_top_sticky", 0);
	texture_side = getTextureUVCoordinateSet("piston_side", 0);
}