![Actually Unbreaking [Fabric]](https://media.forgecdn.net/avatars/thumbnails/339/423/256/256/637479723994205946.png)
1.21 please
bentterp opened this issue ยท 11 comments
Hi again
Once more, can I trouble you for an update? This time for 1.21 of course
with kind regards,
Bent
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
I can find the classes in the 1.20.6 package https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.20.6-neoforge/net/minecraft/world/item/enchantment/DigDurabilityEnchantment.html but they are gone from the 1.21 package https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/item/enchantment/package-summary.html
- and I can't locate the package at all at Fabric's Maven, regardless of version
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
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
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
https://github.com/bentterp/ActuallyUnbreakingFabric/tree/bterp.1.21 for what it's worth
I have the same issue with fabric-exmple-mod so it's obviously my environment that's not properly set up
seems like enchantments are now a part of datapacks, i'm having a hard time updating the mod because of this D:
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.