26ed99fda6
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
23 lines
478 B
Go
23 lines
478 B
Go
package block
|
|
|
|
// Bricks are decorative building blocks.
|
|
type Bricks struct {
|
|
solid
|
|
bassDrum
|
|
}
|
|
|
|
// BreakInfo ...
|
|
func (b Bricks) BreakInfo() BreakInfo {
|
|
return newBreakInfo(2, pickaxeHarvestable, pickaxeEffective, oneOf(b)).withBlastResistance(30)
|
|
}
|
|
|
|
// EncodeItem ...
|
|
func (Bricks) EncodeItem() (name string, meta int16) {
|
|
return "minecraft:brick_block", 0
|
|
}
|
|
|
|
// EncodeBlock ...
|
|
func (Bricks) EncodeBlock() (string, map[string]any) {
|
|
return "minecraft:brick_block", nil
|
|
}
|