Skip to content

Commit

Permalink
add glowstone placement (only broken noteblock instrument)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew-j-Smith authored and StackDoubleFlow committed Jan 7, 2025
1 parent f618a10 commit af56a3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/blocks/src/items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::block_entities::ContainerType;
use crate::BlockColorVariant;
use mchprs_utils::map;

#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct ItemStack {
pub item_type: Item,
pub count: u8,
Expand Down Expand Up @@ -184,6 +184,12 @@ items! {
from_id(_id): 187 => {},
block: true,
},
Glowstone {
props: {},
get_id: 275,
from_id(_id): 275 => {},
block: true,
},
Sandstone {
props: {},
get_id: 190,
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub fn get_state_for_placement(
let block = match item {
Item::Stone {} => Block::Stone {},
Item::Glass {} => Block::Glass {},
Item::Glowstone {} => Block::Glowstone {},
Item::Sandstone {} => Block::Sandstone {},
Item::SeaPickle {} => Block::SeaPickle { pickles: 1 },
Item::Wool { color } => Block::Wool { color },
Expand Down

0 comments on commit af56a3e

Please sign in to comment.