github.com/df-mc/dragonfly@v0.9.13/server/block/ancient_debris.go (about)

     1  package block
     2  
     3  import (
     4  	"github.com/df-mc/dragonfly/server/item"
     5  )
     6  
     7  // AncientDebris is a rare ore found within The Nether.
     8  type AncientDebris struct {
     9  	solid
    10  }
    11  
    12  // BreakInfo ...
    13  func (a AncientDebris) BreakInfo() BreakInfo {
    14  	return newBreakInfo(30, func(t item.Tool) bool {
    15  		return t.ToolType() == item.TypePickaxe && t.HarvestLevel() >= item.ToolTierDiamond.HarvestLevel
    16  	}, pickaxeEffective, oneOf(a)).withBlastResistance(3600)
    17  }
    18  
    19  // SmeltInfo ...
    20  func (AncientDebris) SmeltInfo() item.SmeltInfo {
    21  	return newOreSmeltInfo(item.NewStack(item.NetheriteScrap{}, 1), 2)
    22  }
    23  
    24  // EncodeItem ...
    25  func (AncientDebris) EncodeItem() (name string, meta int16) {
    26  	return "minecraft:ancient_debris", 0
    27  }
    28  
    29  // EncodeBlock ...
    30  func (AncientDebris) EncodeBlock() (string, map[string]any) {
    31  	return "minecraft:ancient_debris", nil
    32  }