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,31 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user