parent
2a09971903
commit
273902873d
@ -0,0 +1,17 @@
|
|||||||
|
#[derive(Deserialize, Debug, Clone)]
|
||||||
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
||||||
|
pub struct BlockLoot {
|
||||||
|
pub block: String,
|
||||||
|
pub drops: Vec<ItemDrop>,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize, Debug, Clone)]
|
||||||
|
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
|
||||||
|
pub struct ItemDrop {
|
||||||
|
pub item: String,
|
||||||
|
pub drop_chance: f32,
|
||||||
|
pub stack_size_range: [Option<usize>; 2],
|
||||||
|
pub block_age: Option<usize>,
|
||||||
|
pub silk_touch: Option<bool>,
|
||||||
|
pub no_silk_touch: Option<bool>,
|
||||||
|
}
|
Loading…
Reference in New Issue