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,33 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/item"
|
||||
)
|
||||
|
||||
// Netherite is a precious mineral block made from 9 netherite ingots.
|
||||
type Netherite struct {
|
||||
solid
|
||||
bassDrum
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (n Netherite) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(50, func(t item.Tool) bool {
|
||||
return t.ToolType() == item.TypePickaxe && t.HarvestLevel() >= item.ToolTierDiamond.HarvestLevel
|
||||
}, pickaxeEffective, oneOf(n)).withBlastResistance(6000)
|
||||
}
|
||||
|
||||
// PowersBeacon ...
|
||||
func (Netherite) PowersBeacon() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (Netherite) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:netherite_block", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (Netherite) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:netherite_block", nil
|
||||
}
|
||||
Reference in New Issue
Block a user