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,37 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/item"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Coal is a precious mineral block made from 9 coal.
|
||||
type Coal struct {
|
||||
solid
|
||||
bassDrum
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (c Coal) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(5, pickaxeHarvestable, pickaxeEffective, oneOf(c)).withBlastResistance(30)
|
||||
}
|
||||
|
||||
// FlammabilityInfo ...
|
||||
func (Coal) FlammabilityInfo() FlammabilityInfo {
|
||||
return newFlammabilityInfo(5, 5, false)
|
||||
}
|
||||
|
||||
// FuelInfo ...
|
||||
func (Coal) FuelInfo() item.FuelInfo {
|
||||
return newFuelInfo(time.Second * 800)
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (Coal) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:coal_block", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (Coal) EncodeBlock() (name string, properties map[string]any) {
|
||||
return "minecraft:coal_block", nil
|
||||
}
|
||||
Reference in New Issue
Block a user