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
32 lines
701 B
Go
32 lines
701 B
Go
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
|
|
}
|