Skip to content

Commit

Permalink
Updated tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Leronus committed Aug 9, 2024
1 parent 7c3f867 commit 6271dff
Show file tree
Hide file tree
Showing 17 changed files with 443 additions and 435 deletions.
3 changes: 3 additions & 0 deletions MORES-CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.4.2
- Updated ruby tooltips (matched colors and fixed accidental double line)

v1.4.1
- Added bronze armor to trimmable armor
- Fixed ruby tools burn effect tooltip (and added to tools)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ dependencies {
modImplementation "maven.modrinth:SfMw2IZN:${project.nvidium_version}"

//Custom Shields
modImplementation "maven.modrinth:7SDalH12:xY16zX6k"
modImplementation "maven.modrinth:fabricshieldlib:${project.fabric_shield_lib_version}"
modImplementation "maven.modrinth:modmenu:${project.mod_menu_version}"
modImplementation "maven.modrinth:midnightlib:${project.midnightlib_version}"
modImplementation "com.github.Chocohead:Fabric-ASM:v${project.fabricasm_version}"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.3
loader_version=0.15.11

# Mod Properties
mod_version=1.4.1
mod_version=1.4.2
maven_group=mod.leronus.mores
archives_base_name=mores

Expand Down
666 changes: 333 additions & 333 deletions src/main/generated/.cache/2c213646d49e9ecdb2ab778829ad26b18324abe1

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions src/main/generated/.cache/b5299a397ab51287936ac7b21c43c2a195931fd7
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
// 1.20.1 2024-02-18T19:23:46.0413216 mOres/World Gen
059b234f6626035c5209aa110909c45a95215738 data\mores\worldgen\configured_feature\sapphire_small_ore.json
1df92b128ece0920fa33071d924fe4e1a30609b5 data\mores\worldgen\configured_feature\sapphire_buried_ore.json
b42d78be3b5e8b2d4aa26bc7c195bbefeef05cd0 data\mores\worldgen\configured_feature\topaz_large_ore.json
cbd089dc146e7df6aea567403ba2cc182b71de01 data\mores\worldgen\configured_feature\moissanite_small_ore.json
e3e8de1a062fcdc897121c235008625847c403d5 data\mores\worldgen\configured_feature\turquoise_buried_ore.json
578f2398da44d3c2651ff247cc65b20a99a993fd data\mores\worldgen\placed_feature\nether_moissanite_placed.json
60d3ea3d26c40981a9a93593d2ac20314dc1ff18 data\mores\worldgen\configured_feature\end_onyx_ore.json
f01e5af6652bb12efe4cc5ee05b306d2ddee1881 data\mores\worldgen\placed_feature\turquoise_small_placed.json
100c6708bdc59f94e175c460f1de31c8c7d47fa3 data\mores\worldgen\placed_feature\tin_small_placed.json
ddcc77a9ebb78c971e824042c86bf263c9ac2f9e data\mores\worldgen\configured_feature\ruby_buried_ore.json
ef997dec7841569fc7f781ecb501d30064d21052 data\mores\worldgen\placed_feature\sapphire_buried_placed.json
ff00ffbf0734d3c3aeba811b57f9d99c9f2fcf22 data\mores\worldgen\placed_feature\moissanite_buried_placed.json
05279cc389f05c479b99d8ae0d71146df1b865be data\mores\worldgen\placed_feature\topaz_small_placed.json
1c5461403cf3f153c48dde042d29779d5697649a data\mores\worldgen\configured_feature\ruby_large_ore.json
85a9ff5bdcc449006bb47f936399095c3e255c4a data\mores\worldgen\configured_feature\topaz_buried_ore.json
f58d4086dff0feb130fd3d6ac3a96633ecf6e122 data\mores\worldgen\placed_feature\ruby_large_placed.json
// 1.20.4 2024-08-09T15:26:20.5800913 mOres/World Gen
88469efac3ed693f5158f4e6fd1ec98ea5e0bab9 data\mores\worldgen\placed_feature\moissanite_large_placed.json
6892d468342ff79aac351f1e66ec3d1e78d9ba83 data\mores\worldgen\configured_feature\sapphire_large_ore.json
17ec872cd9ed2cd2e3a7a3353fe49433c108de8c data\mores\worldgen\placed_feature\tourmaline_large_placed.json
60d3ea3d26c40981a9a93593d2ac20314dc1ff18 data\mores\worldgen\configured_feature\end_onyx_ore.json
88f701ce7e7801720a18859be78fb3a5d50c1154 data\mores\worldgen\configured_feature\tin_middle_ore.json
9490967d4cf15718a81535798984f1e2857b969d data\mores\worldgen\configured_feature\nether_sapphire_ore.json
dae3adb4910e19d3a49db653a296a8b4612bf01b data\mores\worldgen\configured_feature\tourmaline_small_ore.json
6fa9b33c7b371757d15fdf6b878485e00273c558 data\mores\worldgen\placed_feature\tourmaline_small_placed.json
deb0e1e733b879cb641b8e48ea13907373567992 data\mores\worldgen\placed_feature\cobalt_small_placed.json
cbf7096450a0b25284d2f8f966ff7460d89c7638 data\mores\worldgen\placed_feature\sapphire_small_placed.json
de3845c5c81018db4fdd601d98d3ff955b84bd43 data\mores\worldgen\configured_feature\silver_middle_ore.json
1d48148e678767b8b23a2045e877a630eceb1e7c data\mores\worldgen\configured_feature\nether_silver_ore.json
f6c9b3c5cc2482b82b9a6a86040ef2c570652fbe data\mores\worldgen\placed_feature\cobalt_middle_placed.json
d99ab97a888d13136260bd2581eac3dd09e522a3 data\mores\worldgen\placed_feature\end_onyx_placed.json
ef34866f60c760f43d148fdeda5af0454ddf1aa4 data\mores\worldgen\placed_feature\moissanite_small_placed.json
30539228731022681dff5ac8f7c04088ab3d375f data\mores\worldgen\placed_feature\topaz_buried_placed.json
7fd632e248d961ad028ba0b1be6facf9d4fe4723 data\mores\worldgen\placed_feature\nether_sapphire_placed.json
f4fc9a2304a047c17cd42df0846348184d3d050d data\mores\worldgen\configured_feature\ruby_small_ore.json
434098b435b8367c9bddf855be4d2edd54a322db data\mores\worldgen\placed_feature\nether_silver_placed.json
f69a0a16f28568e5a420d8caf1f913edb9e7cddb data\mores\worldgen\configured_feature\moissanite_large_ore.json
ef997dec7841569fc7f781ecb501d30064d21052 data\mores\worldgen\placed_feature\sapphire_buried_placed.json
e7d115fdae40224319a08a829e1d775cba361848 data\mores\worldgen\placed_feature\silver_upper_placed.json
88469efac3ed693f5158f4e6fd1ec98ea5e0bab9 data\mores\worldgen\placed_feature\moissanite_large_placed.json
45d4dbe9366b77189f196451fb0d9fadbda1cf02 data\mores\worldgen\configured_feature\turquoise_small_ore.json
100c6708bdc59f94e175c460f1de31c8c7d47fa3 data\mores\worldgen\placed_feature\tin_small_placed.json
e330a26fcf9e86444b8a6520620744e19aecb715 data\mores\worldgen\placed_feature\tin_upper_placed.json
a4fc0e8c4b764f3cc9e817388ed9772466e1e2b7 data\mores\worldgen\placed_feature\silver_middle_placed.json
e81336d07e5ed25002370de774406a813c496ee6 data\mores\worldgen\placed_feature\topaz_large_placed.json
30b24e30ae7048dececda578d57b0b35af43dfa8 data\mores\worldgen\configured_feature\turquoise_large_ore.json
c3718dc77d968155c9dc63cbcd631a1401caef7e data\mores\worldgen\configured_feature\cobalt_upper_ore.json
6892d468342ff79aac351f1e66ec3d1e78d9ba83 data\mores\worldgen\configured_feature\sapphire_large_ore.json
22565aa3748385d36dd59f8f39f2e0c709ea460a data\mores\worldgen\placed_feature\turquoise_large_placed.json
d99ab97a888d13136260bd2581eac3dd09e522a3 data\mores\worldgen\placed_feature\end_onyx_placed.json
a53ed0fa9d059eb02672159517e2a446b731730a data\mores\worldgen\configured_feature\tourmaline_large_ore.json
d05306e936e0b54fb908ff3880ad8f338a238f19 data\mores\worldgen\placed_feature\nether_anthracite_placed.json
f6c9b3c5cc2482b82b9a6a86040ef2c570652fbe data\mores\worldgen\placed_feature\cobalt_middle_placed.json
f58d4086dff0feb130fd3d6ac3a96633ecf6e122 data\mores\worldgen\placed_feature\ruby_large_placed.json
b94295e65abe926d0a4f29bbd82c0511a8361911 data\mores\worldgen\placed_feature\nether_ruby_placed.json
c18a52c91db4ee51e2ee0a2eadc723b126a05950 data\mores\worldgen\configured_feature\tourmaline_buried_ore.json
f281b81077f64baa42ee142d23a5fd4e53c1a386 data\mores\worldgen\placed_feature\sapphire_large_placed.json
cdde7bfaf5ef92d58500c044f8e89b0b57afb504 data\mores\worldgen\configured_feature\nether_anthracite_ore.json
86065106f33b5eb753b936b47026cd1a1229ec43 data\mores\worldgen\placed_feature\silver_small_placed.json
242c19d64bc2fda04a153a5aac52bd3609728eff data\mores\worldgen\configured_feature\nether_moissanite_ore.json
2d058392b74e8fc5adb8af251b68d900ea09b96f data\mores\worldgen\configured_feature\overworld_anthracite_ore.json
8fc0f1aa465740a5e7c05528b1bf1693ccc64506 data\mores\worldgen\configured_feature\moissanite_buried_ore.json
ddcc77a9ebb78c971e824042c86bf263c9ac2f9e data\mores\worldgen\configured_feature\ruby_buried_ore.json
85a9ff5bdcc449006bb47f936399095c3e255c4a data\mores\worldgen\configured_feature\topaz_buried_ore.json
711fc4bdb5fb6973a9aa88f488ae0afdea8f9847 data\mores\worldgen\placed_feature\cobalt_upper_placed.json
9490967d4cf15718a81535798984f1e2857b969d data\mores\worldgen\configured_feature\nether_sapphire_ore.json
7df3f075108bb356ecfdc7a1a61f330eefb32f75 data\mores\worldgen\configured_feature\tin_small_ore.json
de3845c5c81018db4fdd601d98d3ff955b84bd43 data\mores\worldgen\configured_feature\silver_middle_ore.json
cad118f92c2f2c8a9d8c5025e59e2453b55d905d data\mores\worldgen\placed_feature\ruby_buried_placed.json
e330a26fcf9e86444b8a6520620744e19aecb715 data\mores\worldgen\placed_feature\tin_upper_placed.json
42d6029ba358d40492dfe0c2c7d264b0eaf0c90d data\mores\worldgen\configured_feature\silver_small_ore.json
c4dc25c7ef8ceaaa70677ca4cdbee5584ea1da96 data\mores\worldgen\placed_feature\nether_tanzanite_placed.json
e6677c1c42eec51690dbe892aad08802091cb98a data\mores\worldgen\placed_feature\ruby_small_placed.json
e3e8de1a062fcdc897121c235008625847c403d5 data\mores\worldgen\configured_feature\turquoise_buried_ore.json
814053ef8f2951e0b02e8d3806ea49579665cd68 data\mores\worldgen\configured_feature\cobalt_small_ore.json
141c663116141eda23acd633424d23ca978492d1 data\mores\worldgen\placed_feature\tourmaline_buried_placed.json
f85759ca79a6c52a1ae249d0382683cd7ad3ef8c data\mores\worldgen\placed_feature\tin_middle_placed.json
deb0e1e733b879cb641b8e48ea13907373567992 data\mores\worldgen\placed_feature\cobalt_small_placed.json
f69a0a16f28568e5a420d8caf1f913edb9e7cddb data\mores\worldgen\configured_feature\moissanite_large_ore.json
88f701ce7e7801720a18859be78fb3a5d50c1154 data\mores\worldgen\configured_feature\tin_middle_ore.json
30b24e30ae7048dececda578d57b0b35af43dfa8 data\mores\worldgen\configured_feature\turquoise_large_ore.json
8fc0f1aa465740a5e7c05528b1bf1693ccc64506 data\mores\worldgen\configured_feature\moissanite_buried_ore.json
dae3adb4910e19d3a49db653a296a8b4612bf01b data\mores\worldgen\configured_feature\tourmaline_small_ore.json
8610adcff33f5dd23874b3713d04e76ece259796 data\mores\worldgen\placed_feature\turquoise_buried_placed.json
f281b81077f64baa42ee142d23a5fd4e53c1a386 data\mores\worldgen\placed_feature\sapphire_large_placed.json
f4fc9a2304a047c17cd42df0846348184d3d050d data\mores\worldgen\configured_feature\ruby_small_ore.json
7fd632e248d961ad028ba0b1be6facf9d4fe4723 data\mores\worldgen\placed_feature\nether_sapphire_placed.json
30539228731022681dff5ac8f7c04088ab3d375f data\mores\worldgen\placed_feature\topaz_buried_placed.json
7b5d73656beff031ef3a23e4c4986b18deddc2ed data\mores\worldgen\configured_feature\nether_tanzanite_ore.json
a4fc0e8c4b764f3cc9e817388ed9772466e1e2b7 data\mores\worldgen\placed_feature\silver_middle_placed.json
0411da2ee84e578979bda3b4e39d81e15ff88c4f data\mores\worldgen\configured_feature\tin_upper_ore.json
45d4dbe9366b77189f196451fb0d9fadbda1cf02 data\mores\worldgen\configured_feature\turquoise_small_ore.json
bdd0c2cc2909f73eba53209ceb9064ab138394e4 data\mores\worldgen\placed_feature\overworld_anthracite_placed.json
b42d78be3b5e8b2d4aa26bc7c195bbefeef05cd0 data\mores\worldgen\configured_feature\topaz_large_ore.json
f01e5af6652bb12efe4cc5ee05b306d2ddee1881 data\mores\worldgen\placed_feature\turquoise_small_placed.json
1df92b128ece0920fa33071d924fe4e1a30609b5 data\mores\worldgen\configured_feature\sapphire_buried_ore.json
ca5be574fb29c66694085c807d984baa54e2d9a3 data\mores\worldgen\configured_feature\nether_ruby_ore.json
c18a52c91db4ee51e2ee0a2eadc723b126a05950 data\mores\worldgen\configured_feature\tourmaline_buried_ore.json
6fa9b33c7b371757d15fdf6b878485e00273c558 data\mores\worldgen\placed_feature\tourmaline_small_placed.json
e81336d07e5ed25002370de774406a813c496ee6 data\mores\worldgen\placed_feature\topaz_large_placed.json
42d6029ba358d40492dfe0c2c7d264b0eaf0c90d data\mores\worldgen\configured_feature\silver_small_ore.json
f85759ca79a6c52a1ae249d0382683cd7ad3ef8c data\mores\worldgen\placed_feature\tin_middle_placed.json
7b5d73656beff031ef3a23e4c4986b18deddc2ed data\mores\worldgen\configured_feature\nether_tanzanite_ore.json
05279cc389f05c479b99d8ae0d71146df1b865be data\mores\worldgen\placed_feature\topaz_small_placed.json
1c5461403cf3f153c48dde042d29779d5697649a data\mores\worldgen\configured_feature\ruby_large_ore.json
7df3f075108bb356ecfdc7a1a61f330eefb32f75 data\mores\worldgen\configured_feature\tin_small_ore.json
ff00ffbf0734d3c3aeba811b57f9d99c9f2fcf22 data\mores\worldgen\placed_feature\moissanite_buried_placed.json
8610adcff33f5dd23874b3713d04e76ece259796 data\mores\worldgen\placed_feature\turquoise_buried_placed.json
578f2398da44d3c2651ff247cc65b20a99a993fd data\mores\worldgen\placed_feature\nether_moissanite_placed.json
c3718dc77d968155c9dc63cbcd631a1401caef7e data\mores\worldgen\configured_feature\cobalt_middle_ore.json
cbf7096450a0b25284d2f8f966ff7460d89c7638 data\mores\worldgen\placed_feature\sapphire_small_placed.json
2d058392b74e8fc5adb8af251b68d900ea09b96f data\mores\worldgen\configured_feature\overworld_anthracite_ore.json
e6677c1c42eec51690dbe892aad08802091cb98a data\mores\worldgen\placed_feature\ruby_small_placed.json
de3845c5c81018db4fdd601d98d3ff955b84bd43 data\mores\worldgen\configured_feature\silver_upper_ore.json
434098b435b8367c9bddf855be4d2edd54a322db data\mores\worldgen\placed_feature\nether_silver_placed.json
c4dc25c7ef8ceaaa70677ca4cdbee5584ea1da96 data\mores\worldgen\placed_feature\nether_tanzanite_placed.json
b94295e65abe926d0a4f29bbd82c0511a8361911 data\mores\worldgen\placed_feature\nether_ruby_placed.json
cdde7bfaf5ef92d58500c044f8e89b0b57afb504 data\mores\worldgen\configured_feature\nether_anthracite_ore.json
0fb04bda60258cb186dc92a29c0641272777af5f data\mores\worldgen\configured_feature\topaz_small_ore.json
242c19d64bc2fda04a153a5aac52bd3609728eff data\mores\worldgen\configured_feature\nether_moissanite_ore.json
059b234f6626035c5209aa110909c45a95215738 data\mores\worldgen\configured_feature\sapphire_small_ore.json
cbd089dc146e7df6aea567403ba2cc182b71de01 data\mores\worldgen\configured_feature\moissanite_small_ore.json
0411da2ee84e578979bda3b4e39d81e15ff88c4f data\mores\worldgen\configured_feature\tin_upper_ore.json
de3845c5c81018db4fdd601d98d3ff955b84bd43 data\mores\worldgen\configured_feature\silver_upper_ore.json
cad118f92c2f2c8a9d8c5025e59e2453b55d905d data\mores\worldgen\placed_feature\ruby_buried_placed.json
d05306e936e0b54fb908ff3880ad8f338a238f19 data\mores\worldgen\placed_feature\nether_anthracite_placed.json
141c663116141eda23acd633424d23ca978492d1 data\mores\worldgen\placed_feature\tourmaline_buried_placed.json
22565aa3748385d36dd59f8f39f2e0c709ea460a data\mores\worldgen\placed_feature\turquoise_large_placed.json
a53ed0fa9d059eb02672159517e2a446b731730a data\mores\worldgen\configured_feature\tourmaline_large_ore.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// 1.20.1 2024-02-18T19:23:46.030808 mOres/Tags for minecraft:item
// 1.20.4 2024-08-09T15:26:20.5750898 mOres/Tags for minecraft:item
14 changes: 7 additions & 7 deletions src/main/java/mod/leronus/mores/item/custom/ModAxeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.AxeItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.MiningToolItem;
import net.minecraft.item.ToolMaterial;
import net.minecraft.item.*;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.world.World;
Expand Down Expand Up @@ -38,9 +35,12 @@ public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attack
@Override
public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
if (stack.getItem() instanceof MiningToolItem item) {
if (item.getMaterial() == ModToolMaterials.RUBY){
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.auto_smelt").formatted(Formatting.DARK_RED)));
tooltip.add(Text.literal(""));
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.ONYX) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.wither_effect").formatted(Formatting.DARK_GRAY)));
}
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.RUBY) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.burn_effect").formatted(Formatting.DARK_RED)));
}
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.harvest_level").formatted(Formatting.GRAY).append(Text.translatable(String.valueOf(item.getMaterial().getMiningLevel())).formatted(Formatting.GOLD)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attack
@Override
public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
if (stack.getItem() instanceof ModBattleAxeItem){
// tooltip.add(Text.literal(""));
// if (stack.getItem() == ModItems.ONYX_BATTLEAXE) {
// tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.wither_effect").formatted(Formatting.DARK_GRAY)));
// }
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.durability").formatted(Formatting.GRAY).append(Text.translatable(String.valueOf(stack.getItem().getMaxDamage())).formatted(Formatting.LIGHT_PURPLE)));
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.ONYX) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.wither_effect").formatted(Formatting.DARK_GRAY)));
}
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.RUBY) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.burn_effect").formatted(Formatting.RED)));
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.burn_effect").formatted(Formatting.DARK_RED)));
}
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.durability").formatted(Formatting.GRAY).append(Text.translatable(String.valueOf(stack.getItem().getMaxDamage())).formatted(Formatting.LIGHT_PURPLE)));
}
}
}
14 changes: 7 additions & 7 deletions src/main/java/mod/leronus/mores/item/custom/ModHoeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.HoeItem;
import net.minecraft.item.ItemStack;
import net.minecraft.item.MiningToolItem;
import net.minecraft.item.ToolMaterial;
import net.minecraft.item.*;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.world.World;
Expand Down Expand Up @@ -38,9 +35,12 @@ public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attack
@Override
public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
if (stack.getItem() instanceof MiningToolItem item) {
if (item.getMaterial() == ModToolMaterials.RUBY){
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.auto_smelt").formatted(Formatting.DARK_RED)));
tooltip.add(Text.literal(""));
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.ONYX) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.wither_effect").formatted(Formatting.DARK_GRAY)));
}
if (((ToolItem) stack.getItem()).getMaterial() == ModToolMaterials.RUBY) {
tooltip.add(Text.translatable("mores.bonus").formatted(Formatting.GRAY).append(Text.translatable("mores.burn_effect").formatted(Formatting.DARK_RED)));
}
tooltip.add(Text.literal(""));
tooltip.add(Text.translatable("mores.harvest_level").formatted(Formatting.GRAY).append(Text.translatable(String.valueOf(item.getMaterial().getMiningLevel())).formatted(Formatting.GOLD)));
Expand Down
Loading

0 comments on commit 6271dff

Please sign in to comment.