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,48 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/block/cube"
|
||||
"github.com/df-mc/dragonfly/server/item"
|
||||
"github.com/df-mc/dragonfly/server/world"
|
||||
"github.com/df-mc/dragonfly/server/world/sound"
|
||||
)
|
||||
|
||||
// Glowstone is commonly found on the ceiling of the nether dimension.
|
||||
type Glowstone struct {
|
||||
solid
|
||||
}
|
||||
|
||||
// Instrument ...
|
||||
func (g Glowstone) Instrument() sound.Instrument {
|
||||
return sound.Pling()
|
||||
}
|
||||
|
||||
// CanRedstoneWireStepDown ...
|
||||
func (Glowstone) CanRedstoneWireStepDown(cube.Pos, cube.Pos, *world.Tx) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// RelaysRedstonePowerThrough returns false.
|
||||
func (Glowstone) RelaysRedstonePowerThrough() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (g Glowstone) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(0.3, alwaysHarvestable, nothingEffective, discreteDrops(item.GlowstoneDust{}, g, 2, 4, 4))
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (Glowstone) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:glowstone", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (Glowstone) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:glowstone", nil
|
||||
}
|
||||
|
||||
// LightEmissionLevel returns 15.
|
||||
func (Glowstone) LightEmissionLevel() uint8 {
|
||||
return 15
|
||||
}
|
||||
Reference in New Issue
Block a user