forked from df-mc/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netherite.go
33 lines (27 loc) · 790 Bytes
/
netherite.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package block
import (
"github.com/Adrian8115/dragonfly-Amethyst-Protocol/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(3600)
}
// 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
}