Actually Unbreaking [Fabric]

Actually Unbreaking [Fabric]

73.9k Downloads

1.21 please

bentterp opened this issue ยท 11 comments

commented

Hi again

Once more, can I trouble you for an update? This time for 1.21 of course

with kind regards,
Bent

commented

Stuck at

Task :compileJava
/home/bent/Mods/ActuallyUnbreakingFabric/src/main/java/wutdahack/actuallyunbreaking/mixin/DigDurabilityEnchantmentMixin.java:6: error: cannot find symbol
import net.minecraft.world.item.enchantment.DigDurabilityEnchantment;
^
symbol: class DigDurabilityEnchantment
location: package net.minecraft.world.item.enchantment
/home/bent/Mods/ActuallyUnbreakingFabric/src/main/java/wutdahack/actuallyunbreaking/mixin/DigDurabilityEnchantmentMixin.java:9: error: cannot find symbol
import net.minecraft.world.item.enchantment.MendingEnchantment;
^
symbol: class MendingEnchantment
location: package net.minecraft.world.item.enchantment

commented
commented

I guess this can't be done until ParchmentMC releases their 1.21 build

commented

Work comes first, no need to even apologize!
I tried setting up a build env myself but got stuck at "Could not find org.parchmentmc.data:parchment-1.21:2024.05.01." which I guess it caused by that there hasn't been a parchment release yet for 1.21

commented

sorry, i've been busy with exams that are ending next week so i haven't been working on the mod :') i also don't pay attention to when new updates release but hopefully i'll be able to update the mod after next week

commented

Parchment came out, got a little further but ran into this error message which I can't google my way past :-(

Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

error: release version 21 not supported

bent@tux2:~/Mods/ActuallyUnbreakingFabric$ ./gradlew -version


Gradle 8.8

Build time: 2024-05-31 21:46:56 UTC
Revision: 4bd1b3d3fc3f31db5a26eecb416a165b8cc36082

Kotlin: 1.9.22
Groovy: 3.0.21
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.3 (Red Hat, Inc. 21.0.3+9)
OS: Linux 6.9.4-200.fc40.x86_64 amd64

commented

I have the same issue with fabric-exmple-mod so it's obviously my environment that's not properly set up

commented

seems like enchantments are now a part of datapacks, i'm having a hard time updating the mod because of this D:

commented

Sad :-(

commented

I've made a semi-similar mod, it has yet to be published. Although it has no extra functionality that this one had.
https://github.com/SkylordBrebro/trulyunbreakable/tree/master
@wutdahack you can use my code if you'd like, it's trash, but it works. I didn't find a way to remove enchants, decided to just leave unbreaking on the tool. Heard you have to copy the enchants, then edit them, then re-apply them because they are immutable.