-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/block: Implement missing tuff blocks & fix some slab/stairs br…
…eak info
- Loading branch information
1 parent
16b4c61
commit 4064d73
Showing
10 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package block | ||
|
||
// PolishedTuff is a decorational variant of Tuff that can be crafted or found naturally in Trial Chambers. | ||
type PolishedTuff struct { | ||
solid | ||
bassDrum | ||
} | ||
|
||
// BreakInfo ... | ||
func (t PolishedTuff) BreakInfo() BreakInfo { | ||
return newBreakInfo(1.5, pickaxeHarvestable, pickaxeEffective, oneOf(t)).withBlastResistance(30) | ||
} | ||
|
||
// EncodeItem ... | ||
func (t PolishedTuff) EncodeItem() (name string, meta int16) { | ||
return "minecraft:polished_tuff", 0 | ||
} | ||
|
||
// EncodeBlock ... | ||
func (t PolishedTuff) EncodeBlock() (string, map[string]any) { | ||
return "minecraft:polished_tuff", nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package block | ||
|
||
// TuffBricks are a decorational variant of Tuff that can be crafted or found naturally in Trial Chambers. | ||
type TuffBricks struct { | ||
solid | ||
bassDrum | ||
|
||
// Chiseled specifies if the tuff bricks are chiseled. | ||
Chiseled bool | ||
} | ||
|
||
// BreakInfo ... | ||
func (t TuffBricks) BreakInfo() BreakInfo { | ||
return newBreakInfo(1.5, pickaxeHarvestable, pickaxeEffective, oneOf(t)).withBlastResistance(30) | ||
} | ||
|
||
// EncodeItem ... | ||
func (t TuffBricks) EncodeItem() (name string, meta int16) { | ||
if t.Chiseled { | ||
return "minecraft:chiseled_tuff_bricks", 0 | ||
} | ||
return "minecraft:tuff_bricks", 0 | ||
} | ||
|
||
// EncodeBlock ... | ||
func (t TuffBricks) EncodeBlock() (string, map[string]any) { | ||
if t.Chiseled { | ||
return "minecraft:chiseled_tuff_bricks", nil | ||
} | ||
return "minecraft:tuff_bricks", nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters