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
|
||||
|
||||
import "github.com/df-mc/dragonfly/server/world"
|
||||
|
||||
// Terracotta is a block formed from clay, with a hardness and blast resistance comparable to stone. For colouring it,
|
||||
// take a look at StainedTerracotta.
|
||||
type Terracotta struct {
|
||||
solid
|
||||
bassDrum
|
||||
}
|
||||
|
||||
// SoilFor ...
|
||||
func (Terracotta) SoilFor(block world.Block) bool {
|
||||
_, ok := block.(DeadBush)
|
||||
return ok
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (t Terracotta) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(1.25, pickaxeHarvestable, pickaxeEffective, oneOf(t)).withBlastResistance(21)
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (Terracotta) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:hardened_clay", meta
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (Terracotta) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:hardened_clay", nil
|
||||
}
|
||||
Reference in New Issue
Block a user