23 lines
518 B
Go
23 lines
518 B
Go
|
|
package block
|
||
|
|
|
||
|
|
// MudBricks are a decorative block obtained by crafting 4 packed mud.
|
||
|
|
type MudBricks struct {
|
||
|
|
solid
|
||
|
|
bassDrum
|
||
|
|
}
|
||
|
|
|
||
|
|
// BreakInfo ...
|
||
|
|
func (m MudBricks) BreakInfo() BreakInfo {
|
||
|
|
return newBreakInfo(1.5, alwaysHarvestable, nothingEffective, oneOf(m)).withBlastResistance(15)
|
||
|
|
}
|
||
|
|
|
||
|
|
// EncodeItem ...
|
||
|
|
func (MudBricks) EncodeItem() (name string, meta int16) {
|
||
|
|
return "minecraft:mud_bricks", 0
|
||
|
|
}
|
||
|
|
|
||
|
|
// EncodeBlock ...
|
||
|
|
func (MudBricks) EncodeBlock() (string, map[string]any) {
|
||
|
|
return "minecraft:mud_bricks", nil
|
||
|
|
}
|