Files
mc/server/block/honeycomb.go
T
TarnaWijaya 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
up3
2026-07-09 08:33:57 +08:00

31 lines
639 B
Go

package block
import (
"github.com/df-mc/dragonfly/server/world/sound"
)
// Honeycomb is a decorative blocks crafted from honeycombs.
type Honeycomb struct {
solid
}
// Instrument ...
func (h Honeycomb) Instrument() sound.Instrument {
return sound.Flute()
}
// BreakInfo ...
func (h Honeycomb) BreakInfo() BreakInfo {
return newBreakInfo(0.6, alwaysHarvestable, nothingEffective, oneOf(h))
}
// EncodeItem ...
func (Honeycomb) EncodeItem() (name string, meta int16) {
return "minecraft:honeycomb_block", 0
}
// EncodeBlock ...
func (Honeycomb) EncodeBlock() (string, map[string]any) {
return "minecraft:honeycomb_block", nil
}