mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* 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 :)
10 lines
189 B
Rust
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 {}
|