Skip to content

Improvement: Hoe Level Displays#5515

Open
NotRoboo wants to merge 10 commits intohannibal002:betafrom
NotRoboo:tool-level-hud-update
Open

Improvement: Hoe Level Displays#5515
NotRoboo wants to merge 10 commits intohannibal002:betafrom
NotRoboo:tool-level-hud-update

Conversation

@NotRoboo
Copy link
Copy Markdown
Contributor

@NotRoboo NotRoboo commented Mar 30, 2026

What'

Changes the static "Hoe Levels" HUD title to adapt to which tool type user is using.

  • Added "Axe Levels" in addition to "Hoe Levels"

If want any changes let me know/if there is better way i did this in 2min directly in github

Images Screenshot 2026-03-30 154004 Screenshot 2026-03-30 154103 Screenshot 2026-03-30 154134

Changelog Improvements

  • Improved Tool Level Display (formerly Hoe Levels Display) now adapts to the type of tool currently being used. - Roboo

Comment on lines +78 to +84
val cleanName = heldItem.hoverName.string.removeColor()
val title = when {
cleanName.contains("Knife") -> "§6Knife Level"
cleanName.contains("Chopper") || cleanName.contains("Dicer") -> "§6Axe Level"
cleanName.contains("Hoe") || cleanName.contains("Cutter") -> "§6Hoe Level"
else -> "§6Farming Tool Level"
}
Copy link
Copy Markdown
Contributor

@lunaynx lunaynx Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hypixel still calls the Cactus Knife a hoe, even though it has a sword item model. We don't distinguish between Chopper, Cutter, and Dicer either (nor do I think we should).

Also, small nitpick, but we can probably change "Farming Tool" to just "Tool" (not that it should ever realistically show up anyway).

May require adding imports to compile.

Suggested change
val cleanName = heldItem.hoverName.string.removeColor()
val title = when {
cleanName.contains("Knife") -> "§6Knife Level"
cleanName.contains("Chopper") || cleanName.contains("Dicer") -> "§6Axe Level"
cleanName.contains("Hoe") || cleanName.contains("Cutter") -> "§6Hoe Level"
else -> "§6Farming Tool Level"
}
val type = when (heldItem.getItemCategoryOrNull()) {
ItemCategory.HOE -> "Hoe"
ItemCategory.AXE -> "Axe"
else -> "Tool"
}
val title = "§6$type Level"

@lunaynx
Copy link
Copy Markdown
Contributor

lunaynx commented Mar 30, 2026

Other references to "Hoe Levels" in the code should also be changed to "Tool Level" (add @SearchTag("hoe", "axe") for config). Also while you're at it, rename the shsethoelevel command to shsettoollevel and add aliases = listOf("shsethoelevel", "shsetaxelevel")

  • Improved Farming Tool Level HUD. - Roboo

Changelog is too vague, please elaborate. For example: "Tool Level Display (formerly Hoe Levels Display) now adapts to the type of tool currently being used."

@github-actions github-actions bot added the Detekt Has detekt problem label Mar 30, 2026
@github-actions
Copy link
Copy Markdown

25 Detekt Failures

Rule violations

@NopoTheGamer
Copy link
Copy Markdown
Collaborator

its called Hoe LevelS because the crop milestone display is called Crop MilestoneS

@NotRoboo
Copy link
Copy Markdown
Contributor Author

its called Hoe LevelS because the crop milestone display is called Crop MilestoneS

good point, will revert that if i have time to update before i leave for vacation tmrw

@github-actions
Copy link
Copy Markdown

28 Detekt Failures

Rules flagged (3): MatchingDeclarationName, Filename, Indentation
Files flagged (2): HoeLevelDisplay.kt, MuteHoeLevelUp.kt

Rule violations

@NotRoboo
Copy link
Copy Markdown
Contributor Author

shouldd be resolved 🤞 however I have to go for a few days so if any more changes ill get back around to it them then

@github-actions
Copy link
Copy Markdown

1 Detekt Failure

@github-actions
Copy link
Copy Markdown

2 Detekt Failures

Please work spaces
@github-actions github-actions bot removed the Detekt Has detekt problem label Mar 30, 2026
@github-actions
Copy link
Copy Markdown

This pull request has conflicts with the base branch "beta". Please resolve those so we can test out your changes.

@github-actions github-actions bot added the Merge Conflicts There are open merge conflicts with the beta branch. label Mar 31, 2026
@lunaynx
Copy link
Copy Markdown
Contributor

lunaynx commented Mar 31, 2026

New alpha update:

We've recategorized all Hoes and Axes used for farming into a new "Farming Tool" item type. They now share the same reforges and enchantments for simplicity sake. As a direct result of this, we've removed the Sunder enchantment from the game as it was redundant with the functionality of the Harvesting enchantment, but for Axes.

So might as well make it just always say "Tool". But keep the search tags and command aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merge Conflicts There are open merge conflicts with the beta branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants