forbid using chests in pixelblocks

This commit is contained in:
2024-07-17 19:13:00 +02:00
parent f6c23e723d
commit 0707a51a89
3 changed files with 77 additions and 0 deletions

View File

@@ -169,6 +169,8 @@ public class PixelBlock {
}
);
this.remove();
this.pixelBlockLocation.getWorld().playSound(this.pixelBlockLocation, Sound.BLOCK_COPPER_BULB_BREAK, 1.0F, 30);
this.pixelBlockLocation.getWorld().dropItem(this.pixelBlockLocation, this.getAsItem());