10 lines
320 B
Rust
10 lines
320 B
Rust
use potato_derive::ItemComponent;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::consume_effect::ConsumeEffect;
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone, ItemComponent)]
|
|
#[item_component(namespace = "minecraft", id = "death_protection")]
|
|
pub struct DeathProtection {
|
|
pub death_effects: Vec<ConsumeEffect>,
|
|
}
|