up3
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
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
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user