Skip to content

Commit

Permalink
Make plate use random materials for defaults
Browse files Browse the repository at this point in the history
The old fallback shouldn't be needed now
  • Loading branch information
KnightMiner committed Jan 1, 2025
1 parent 4edf7a7 commit 43a2c46
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 27 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,7 @@ protected void addToolDefinitions() {
.modules(slots -> PartStatsModule.armor(slots)
.part(TinkerToolParts.plating, 1)
.part(TinkerToolParts.maille, 1))
.module(DefaultMaterialsModule.builder()
.material(MaterialIds.cobalt)
.material(MaterialIds.ancientHide).build())
.module(defaultTwoParts)
.module(ArmorItem.Type.CHESTPLATE, new MultiplyStatsModule(MultiplierNBT.builder().set(ToolStats.ATTACK_DAMAGE, 0.4f).build()))
.module(plateSlots);
// plate shield
Expand All @@ -598,10 +596,7 @@ protected void addToolDefinitions() {
.stat(PlatingMaterialStats.SHIELD.getId())
.primaryPart(1).build())
.module(new PartsModule(List.of(TinkerToolParts.shieldCore.get())))
.module(DefaultMaterialsModule.builder()
.material(MaterialIds.wood)
.material(MaterialIds.cobalt)
.build())
.module(defaultTwoParts)
.module(new SetStatsModule(StatsNBT.builder()
.set(ToolStats.BLOCK_AMOUNT, 100)
.set(ToolStats.BLOCK_ANGLE, 180).build()))
Expand Down

0 comments on commit 43a2c46

Please sign in to comment.