Added slabs

This commit is contained in:
2022-10-12 08:24:00 +08:00
parent 5f66b792c7
commit e4fc6f4d96
6 changed files with 230 additions and 5 deletions

View File

@@ -22,6 +22,8 @@ const (
Glass
Slab
Count
)
@@ -45,7 +47,9 @@ func init() {
world.RegisterBlockBehaviour(13, world.BlockBehaviourStatic(world.BlockAppearance{Name: "glass", Transparent: true}))
if Count != 14 {
world.RegisterBlockBehaviour(14, SlabBehaviour{})
if Count != 15 {
panic("world.DefaultBlocks: block count not correct (check for block numbering in default_blocks.go)")
}