Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unusing enchantment probibits some pickaxes with infinite durability from working #993

Closed
Matshgi opened this issue Jul 12, 2023 · 2 comments

Comments

@Matshgi
Copy link

Matshgi commented Jul 12, 2023

Issue type:

  • 🐛 Bug

Short description:

When using the unusing enchantment on Pickaxes with Infinite Durability, for example the Awakened Supremium Pickaxe from the Mystical Agriculture Mod, the Pickaxe can't break the block because the block will keep reappearing.

Steps to reproduce the problem:

  1. Enchant Awakened Supremium Pickaxe with unusing
  2. Try to break a block

Expected behaviour:

The block should break.


Versions:

  • This mod: 1.2.25
  • Minecraft: 1.20.1
  • Forge: 47.1.1

Log file:

@rubensworks
Copy link
Member

Thanks for reporting!

@rubensworks
Copy link
Member

The unusing enchantment will check if the current durability is 5 or less from the max durability, it will block changes in the durability and avoid the block destroy action.
So if the pickaxe you're using has a max durability of 5 or less (and handles the infinite durability in some other manner), this behaviour definitely makes sense.

Since unusing+infinite durability don't really make sense, I would recommend just not using them together.
I could add some kind of blacklist mechanism to make these two things just not possible in the first place if you think that makes sense?

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

No branches or pull requests

2 participants