Files
mc/server/block/soul_soil.go
T

30 lines
638 B
Go
Raw Normal View History

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