Files
TarnaWijaya 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
up3
2026-07-09 08:33:57 +08:00

30 lines
638 B
Go

package block
import "github.com/df-mc/dragonfly/server/world"
// SoulSoil is a block naturally found only in the soul sand valley.
type SoulSoil struct {
solid
}
// SoilFor ...
func (s SoulSoil) SoilFor(block world.Block) bool {
_, ok := block.(NetherSprouts)
return ok
}
// BreakInfo ...
func (s SoulSoil) BreakInfo() BreakInfo {
return newBreakInfo(0.5, alwaysHarvestable, shovelEffective, oneOf(s))
}
// EncodeItem ...
func (SoulSoil) EncodeItem() (name string, meta int16) {
return "minecraft:soul_soil", 0
}
// EncodeBlock ...
func (SoulSoil) EncodeBlock() (string, map[string]any) {
return "minecraft:soul_soil", nil
}