Files
Pumpkin/pumpkin/src/block/properties/open.rs
MrMelther daa67c2dfa Reworking block properties (#529)
* Added 11 blocks properties

Added the following properties:
Axis
Open
Age
Attachment
Signal Fire
6 connection directions

* Clippy my beloved 💕

* Reworked block properties

Changed block properties to make them more extensible and easier to handle.

* Little too much of Clippy

* Lever works!!! 🎉

Made the lever work, implementing modifiers to the “on_place” per block, plus the “on_interact” function to handle the state when interacting with a block that has it.

* Kinda implemented bool as value

* A little bit of Clippy :)
2025-02-09 18:45:18 +01:00

10 lines
189 B
Rust

use super::BlockProperty;
use async_trait::async_trait;
use pumpkin_macros::block_property;
#[block_property("open")]
pub struct Open(bool);
#[async_trait]
impl BlockProperty for Open {}