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,33 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/item"
|
||||
"math/rand/v2"
|
||||
)
|
||||
|
||||
// SeaLantern is an underwater light sources that appear in ocean monuments and underwater ruins.
|
||||
type SeaLantern struct {
|
||||
transparent
|
||||
solid
|
||||
clicksAndSticks
|
||||
}
|
||||
|
||||
// LightEmissionLevel ...
|
||||
func (SeaLantern) LightEmissionLevel() uint8 {
|
||||
return 15
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (s SeaLantern) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(0.3, alwaysHarvestable, nothingEffective, silkTouchDrop(item.NewStack(item.PrismarineCrystals{}, rand.IntN(2)+2), item.NewStack(s, 1)))
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (SeaLantern) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:sea_lantern", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (SeaLantern) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:sea_lantern", nil
|
||||
}
|
||||
Reference in New Issue
Block a user