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