forked from df-mc/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ancient_debris.go
32 lines (26 loc) · 842 Bytes
/
ancient_debris.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
package block
import (
"github.com/Adrian8115/dragonfly-Amethyst-Protocol/server/item"
)
// AncientDebris is a rare ore found within The Nether.
type AncientDebris struct {
solid
}
// BreakInfo ...
func (a AncientDebris) BreakInfo() BreakInfo {
return newBreakInfo(30, func(t item.Tool) bool {
return t.ToolType() == item.TypePickaxe && t.HarvestLevel() >= item.ToolTierDiamond.HarvestLevel
}, pickaxeEffective, oneOf(a)).withBlastResistance(3600)
}
// SmeltInfo ...
func (AncientDebris) SmeltInfo() item.SmeltInfo {
return newOreSmeltInfo(item.NewStack(item.NetheriteScrap{}, 1), 2)
}
// EncodeItem ...
func (AncientDebris) EncodeItem() (name string, meta int16) {
return "minecraft:ancient_debris", 0
}
// EncodeBlock ...
func (AncientDebris) EncodeBlock() (string, map[string]any) {
return "minecraft:ancient_debris", nil
}