mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
sprites
This commit is contained in:
parent
a51d214c21
commit
4b72a07e22
13
assets/common/items/coconut.ron
Normal file
13
assets/common/items/coconut.ron
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Item(
|
||||||
|
name: "Mushroom",
|
||||||
|
description: "Reliable Source of water and fat.
|
||||||
|
|
||||||
|
Restores 20 Health.",
|
||||||
|
kind: Consumable(
|
||||||
|
kind: Coconut,
|
||||||
|
effect: Health((
|
||||||
|
amount: 20,
|
||||||
|
cause: Item,
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
)
|
BIN
assets/voxygen/element/icons/item_coconut.png
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/item_coconut.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -272,10 +272,14 @@
|
|||||||
(0.0, 0.0, 0.0), (-90.0, 180.0, 0.0), 1.0,
|
(0.0, 0.0, 0.0), (-90.0, 180.0, 0.0), 1.0,
|
||||||
),
|
),
|
||||||
// Consumables
|
// Consumables
|
||||||
Consumable(Apple): VoxTrans(
|
Consumable(Apple):
|
||||||
|
VoxTrans(
|
||||||
"element.icons.item_apple",
|
"element.icons.item_apple",
|
||||||
(0.0, 0.0, 0.0), (-90.0, 90.0, 0.0), 1.0,
|
(0.0, 0.0, 0.0), (-90.0, 90.0, 0.0), 1.0,
|
||||||
),
|
),
|
||||||
|
Consumable(Coconut): Png(
|
||||||
|
"element.icons.item_coconut",
|
||||||
|
),
|
||||||
Consumable(PotionMinor): VoxTrans(
|
Consumable(PotionMinor): VoxTrans(
|
||||||
"voxel.object.potion_red",
|
"voxel.object.potion_red",
|
||||||
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
|
(0.0, 0.0, 0.0), (-50.0, 30.0, 20.0), 0.8,
|
||||||
|
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-1.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-1.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/cabbage/cabbage-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-1.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-1.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-3.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-3.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-4.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-4.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/corn/corn-5.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/corn/corn-5.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/fruit/coconut.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/fruit/coconut.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-1.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-1.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-3.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-3.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-4.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-4.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-5.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-5.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-6.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-6.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-7.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-7.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-8.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-8.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-9.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_green/wheat-9.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-0.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-0.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-1.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-1.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-2.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-2.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-3.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-3.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-4.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-4.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-5.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-5.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-6.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-6.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-7.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-7.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-8.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-8.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-9.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/wheat_yellow/wheat-9.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/world/tree/desert_palm/1.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/1.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/10.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/10.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/2.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/2.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/3.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/3.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/4.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/4.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/5.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/5.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/6.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/6.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/7.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/7.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/8.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/8.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/world/tree/desert_palm/9.vox
(Stored with Git LFS)
BIN
assets/world/tree/desert_palm/9.vox
(Stored with Git LFS)
Binary file not shown.
@ -16,6 +16,7 @@ use std::{fs::File, io::BufReader};
|
|||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
pub enum Consumable {
|
pub enum Consumable {
|
||||||
|
Coconut,
|
||||||
Apple,
|
Apple,
|
||||||
Cheese,
|
Cheese,
|
||||||
Potion,
|
Potion,
|
||||||
@ -126,6 +127,7 @@ impl Item {
|
|||||||
Some(assets::load_expect_cloned("common.items.grasses.medium"))
|
Some(assets::load_expect_cloned("common.items.grasses.medium"))
|
||||||
},
|
},
|
||||||
BlockKind::ShortGrass => Some(assets::load_expect_cloned("common.items.grasses.short")),
|
BlockKind::ShortGrass => Some(assets::load_expect_cloned("common.items.grasses.short")),
|
||||||
|
BlockKind::Coconut => Some(assets::load_expect_cloned("common.items.coconut")),
|
||||||
BlockKind::Chest => Some(assets::load_expect_cloned(
|
BlockKind::Chest => Some(assets::load_expect_cloned(
|
||||||
[
|
[
|
||||||
"common.items.apple",
|
"common.items.apple",
|
||||||
|
@ -41,6 +41,11 @@ pub enum BlockKind {
|
|||||||
DeadBush,
|
DeadBush,
|
||||||
Blueberry,
|
Blueberry,
|
||||||
Ember,
|
Ember,
|
||||||
|
Corn,
|
||||||
|
WheatYellow,
|
||||||
|
WheatGreen,
|
||||||
|
Cabbage,
|
||||||
|
Coconut,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BlockKind {
|
impl BlockKind {
|
||||||
@ -83,6 +88,11 @@ impl BlockKind {
|
|||||||
BlockKind::DeadBush => true,
|
BlockKind::DeadBush => true,
|
||||||
BlockKind::Blueberry => true,
|
BlockKind::Blueberry => true,
|
||||||
BlockKind::Ember => true,
|
BlockKind::Ember => true,
|
||||||
|
BlockKind::Corn => true,
|
||||||
|
BlockKind::WheatYellow => true,
|
||||||
|
BlockKind::WheatGreen => true,
|
||||||
|
BlockKind::Cabbage => true,
|
||||||
|
BlockKind::Coconut => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -127,6 +137,11 @@ impl BlockKind {
|
|||||||
BlockKind::DeadBush => false,
|
BlockKind::DeadBush => false,
|
||||||
BlockKind::Blueberry => false,
|
BlockKind::Blueberry => false,
|
||||||
BlockKind::Ember => false,
|
BlockKind::Ember => false,
|
||||||
|
BlockKind::Corn => false,
|
||||||
|
BlockKind::WheatYellow => false,
|
||||||
|
BlockKind::WheatGreen => false,
|
||||||
|
BlockKind::Cabbage => false,
|
||||||
|
BlockKind::Coconut => false,
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -163,6 +178,11 @@ impl BlockKind {
|
|||||||
BlockKind::DeadBush => false,
|
BlockKind::DeadBush => false,
|
||||||
BlockKind::Blueberry => false,
|
BlockKind::Blueberry => false,
|
||||||
BlockKind::Ember => false,
|
BlockKind::Ember => false,
|
||||||
|
BlockKind::Corn => false,
|
||||||
|
BlockKind::WheatYellow => false,
|
||||||
|
BlockKind::WheatGreen => false,
|
||||||
|
BlockKind::Cabbage => false,
|
||||||
|
BlockKind::Coconut => false,
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,6 +205,7 @@ impl BlockKind {
|
|||||||
BlockKind::VeloriteFrag => true,
|
BlockKind::VeloriteFrag => true,
|
||||||
BlockKind::Chest => true,
|
BlockKind::Chest => true,
|
||||||
BlockKind::Pumpkin => true,
|
BlockKind::Pumpkin => true,
|
||||||
|
BlockKind::Coconut => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ pub enum StructureBlock {
|
|||||||
Water,
|
Water,
|
||||||
GreenSludge,
|
GreenSludge,
|
||||||
Fruit,
|
Fruit,
|
||||||
|
Coconut,
|
||||||
Chest,
|
Chest,
|
||||||
Hollow,
|
Hollow,
|
||||||
Liana,
|
Liana,
|
||||||
@ -114,6 +115,7 @@ impl Asset for Structure {
|
|||||||
7 => StructureBlock::Fruit,
|
7 => StructureBlock::Fruit,
|
||||||
9 => StructureBlock::Liana,
|
9 => StructureBlock::Liana,
|
||||||
10 => StructureBlock::Chest,
|
10 => StructureBlock::Chest,
|
||||||
|
11 => StructureBlock::Coconut,
|
||||||
13 => StructureBlock::PalmLeavesOuter,
|
13 => StructureBlock::PalmLeavesOuter,
|
||||||
14 => StructureBlock::PalmLeavesInner,
|
14 => StructureBlock::PalmLeavesInner,
|
||||||
15 => StructureBlock::Hollow,
|
15 => StructureBlock::Hollow,
|
||||||
|
@ -174,7 +174,26 @@ fn sprite_config_for(kind: BlockKind) -> Option<SpriteConfig> {
|
|||||||
variations: 1,
|
variations: 1,
|
||||||
wind_sway: 0.8,
|
wind_sway: 0.8,
|
||||||
}),
|
}),
|
||||||
|
BlockKind::Corn => Some(SpriteConfig {
|
||||||
|
variations: 6,
|
||||||
|
wind_sway: 0.4,
|
||||||
|
}),
|
||||||
|
BlockKind::WheatYellow => Some(SpriteConfig {
|
||||||
|
variations: 10,
|
||||||
|
wind_sway: 0.4,
|
||||||
|
}),
|
||||||
|
BlockKind::WheatGreen => Some(SpriteConfig {
|
||||||
|
variations: 10,
|
||||||
|
wind_sway: 0.4,
|
||||||
|
}),
|
||||||
|
BlockKind::Cabbage => Some(SpriteConfig {
|
||||||
|
variations: 3,
|
||||||
|
wind_sway: 0.0,
|
||||||
|
}),
|
||||||
|
BlockKind::Coconut => Some(SpriteConfig {
|
||||||
|
variations: 1,
|
||||||
|
wind_sway: 0.0,
|
||||||
|
}),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1075,6 +1094,221 @@ impl<V: RectRasterableVol> Terrain<V> {
|
|||||||
(BlockKind::Ember, 0),
|
(BlockKind::Ember, 0),
|
||||||
make_model("voxygen.voxel.sprite.ember.1", Vec3::new(-7.0, -7.0, -2.9)),
|
make_model("voxygen.voxel.sprite.ember.1", Vec3::new(-7.0, -7.0, -2.9)),
|
||||||
),
|
),
|
||||||
|
// Corn
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 0),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-0",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 1),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-1",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 2),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-2",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 3),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-3",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 4),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-4",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::Corn, 5),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.corn.corn-5",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Yellow Wheat
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 0),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-0",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 1),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-1",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 2),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-2",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 3),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-3",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 4),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-4",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 5),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-5",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 6),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-6",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 7),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-7",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 8),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-8",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatYellow, 9),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-9",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Green Wheat
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 0),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-0",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 1),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-1",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 2),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-2",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 3),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-3",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 4),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-4",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 5),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-5",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 6),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-6",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 7),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-7",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 8),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-8",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 9),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.wheat_yellow.wheat-9",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Cabbage
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 0),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.cabbage.cabbage-0",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 1),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.cabbage.cabbage-1",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 2),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.cabbage.cabbage-2",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Coconut
|
||||||
|
(
|
||||||
|
(BlockKind::WheatGreen, 0),
|
||||||
|
make_model(
|
||||||
|
"voxygen.voxel.sprite.fruit.coconut",
|
||||||
|
Vec3::new(-6.0, -6.0, 0.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.collect(),
|
.collect(),
|
||||||
|
@ -610,6 +610,11 @@ pub fn block_from_structure(
|
|||||||
} else {
|
} else {
|
||||||
Block::new(BlockKind::Apple, Rgb::new(1, 1, 1))
|
Block::new(BlockKind::Apple, Rgb::new(1, 1, 1))
|
||||||
}),
|
}),
|
||||||
|
StructureBlock::Coconut => Some(if field.get(pos + structure_pos) % 3 > 0 {
|
||||||
|
Block::empty()
|
||||||
|
} else {
|
||||||
|
Block::new(BlockKind::Coconut, Rgb::new(1, 1, 1))
|
||||||
|
}),
|
||||||
StructureBlock::Chest => Some(if structure_seed % 10 < 7 {
|
StructureBlock::Chest => Some(if structure_seed % 10 < 7 {
|
||||||
Block::empty()
|
Block::empty()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user