Closed solaluset closed 11 months ago
It also fixes #222 by ignoring the offhand completely (let me know if that's not acceptable)
@Krutyi-4el This looks great! The thing is, though: we need to consider the offhand since that is a slot where some users might have bottles in. Also, 1.18 is no longer supported, so, if you can resubmit your PR for the 1.20 branch, we can consider this in a way that will actually impact users.
Since this PR is for an unsupported version, I'm going to Close it with this comment, but this doesn't mean that we aren't interested in the PR. We just would like to see it for the latest version and if you make the PR, we can show you as a Contributor for your efforts. If you'd rather us just update the PR that you've submitted, manually, just let us know; but, keep in mind, you'd not be noted as a Contributor because of how GitHub handles it because it is a completely automated process
It's a pity that 1.18 isn't supported 😥 I'll add offhand support and open a PR to 1.20 then
This PR remakes implementation of refreshment enchantment to make it properly work with enchantment levels more than 1 and to make filling mechanic more similar to how vanilla bottles work when you fill them with water.
This is how it worked before:
Preparation (the sword is with Refreshment III)
After the kill (bottles "jump" to other slots, which is weird)
After player drinks the bottle (other two just disappear)
![before3](https://github.com/chronosacaria/MCDungeonsWeapons/assets/60041069/f95c80f4-6a71-4a56-be07-8b2755937e6e)
This is how it works now:
Preparation
After the kill (bottles are filled in-place)
After player drinks the bottle
![after3](https://github.com/chronosacaria/MCDungeonsWeapons/assets/60041069/915fbc40-854d-400b-a858-ea2a0db1e200)