Files
mc/server/block/tuff.go
T

32 lines
701 B
Go
Raw Permalink Normal View History

2026-07-09 08:33:57 +08:00
package block
// Tuff is an ornamental rock formed from volcanic ash, occurring in underground blobs below Y=16.
type Tuff struct {
solid
bassDrum
// Chiseled specifies if the tuff is chiseled.
Chiseled bool
}
// BreakInfo ...
func (t Tuff) BreakInfo() BreakInfo {
return newBreakInfo(1.5, pickaxeHarvestable, pickaxeEffective, oneOf(t)).withBlastResistance(30)
}
// EncodeItem ...
func (t Tuff) EncodeItem() (name string, meta int16) {
if t.Chiseled {
return "minecraft:chiseled_tuff", 0
}
return "minecraft:tuff", 0
}
// EncodeBlock ...
func (t Tuff) EncodeBlock() (string, map[string]any) {
if t.Chiseled {
return "minecraft:chiseled_tuff", nil
}
return "minecraft:tuff", nil
}