Create a Fabric 26.1.2 mod called "RPG Anvil" that adds an Anvil capable to do custom enchanting for weapons and add custom skills with this list Enchantment:
- Damage 1 to 10 (add 1 damage per level to any weapon in minecraft)
- Element (you can add 1 of these 6 elements Water, Fire, Earth, Wind, Dark, Light to any weapon in minecraft, and add a feature for example if your weapon uses water element, when you use the weapon, there will be water animation around it)
- Element Damage 1 to 10 (add 1 damage per level dealt by the element chosen and also more level will make the animation cooler)
- Critical Damage 1 to 10 (add 1 critical damage per level to any weapon in minecraft)
- Critical Chance 1 to 10 (add 3% critical chance per level to any weapon in minecraft)
Skills (If there's no requirement listed then it has no requirement):
- Amaterasu 1 to 5 (Requirement: Only for fire element damage level 5) (right click: make a black fire in a target that dealt 5 damage to a target and causes wither for 5 seconds. Add 5 damage per level and add 5 seconds per level. Give black fire effect when wither was still active. Cooldown 50 seconds, decrease 3 seconds per level)
- Vampire 1 to 10 (On hit: absorb 10% of opponent's health to you for the damage that they taken from the weapon with 5% chance. Add 10% more absorption on each level and add 5% more chance with each level. Add the effect of vampire bite on screen when it activates)
- Ender Eye 1 to 5 (right click: teleport 3 block from a target chosen. Add 3 block for each level. Add the effect of the Eyes of the Ender with ender pearl teleporting sound. Cooldown 50 seconds, decrease 3 seconds per level)
- Whirlwind 1 to 5 (Requirement: Only for wind element damage level 5) (right click: make a whirlwind that will knockback player 5 block and give nausea for 3 seconds, add 5 more block of knockback for each level and add 3 more seconds of nausea. Add the effect of a tornado near the target. Cooldown 50 seconds, decrease 3 seconds per level)
- Tsunami 1 to 5 (Requirement: Only for water element damage level 5) (right click: make a tsunami that will give drowning damage for 5 seconds and give slowness effect for 3 seconds, add 5 more seconds of drowning damage for each level, and add 3 more seconds of slowness effect for each level. Add the wave effect upon activation. Cooldown 50 seconds, decrease 3 seconds per level)
- Earthquake (Requirement: only for earth element damage level 10) (right click: open a 3 blocks wide and 10 blocks long crack on land, and when it trapped a player, it will close immediately giving them suffocation damage, give them mining fatigue forever when trapped. Add sounds upon activation like earth crumbling. Cooldown 120 seconds)
- Blinding Light 1 to 3 (Requirement: Only for light element damage level 5) (right click: Blind your opponent for 10 seconds, give 5 instant damage upon activation. Add 5 more seconds of blindness and 5 more instant damage for each level. Give the animation of a bright light on the target's screen, and then give a tingling sound effect like a flashbang. Cooldown 80 seconds, decrease 3 seconds per level)
- Black Hole (Requirement: Only for dark element damage level 10) (right click: Make a black hole that pulls the opponents on 20 blocks radius, give them maximum slowness under the radius, damage them upon impact on the core 4 damage per seconds. The black hole will be activated for 30 seconds. Add the animation of a black hole and the sound also. Cooldown 120 seconds)
I’ll create this comprehensive RPG Anvil Fabric mod. Let me plan the architecture first.
Plan:
Main mod class + fabric.mod.json + build.gradle
Enchantment data model (EnchantmentType, ElementType, SkillType)
RPG Item NBT manager (read/write custom enchants/skills to items)
Custom Anvil Block + BlockEntity + Screen (GUI)
Enchantment logic handler (damage, element, crit)
Skill logic handler (all 8 skills with effects/animations)
Event listeners (attack, right-click, tick)
Particle/visual effect helpers
Registration classes
Now the client-side screen:
Now fix the BlackHoleSkill — it has a stray anonymous class. Let me also create the ambient weapon effect tick and the missing BlockPos import fix:
Now fix the TsunamiSkill to remove the broken scheduling approach and use a clean recursive executor:
Now fix EarthquakeSkill to remove the broken anonymous class and clean up the NBT usage:
Now fix ModPackets — the registerClientPackets must not re-register already-registered C2S payloads (they’re registered once in registerServerPackets which runs on both sides via the main entrypoint). The client entrypoint only needs to register S2C packets and client-side receivers:
Now the RPGAnvilScreen references a texture that doesn’t exist — let’s create a placeholder texture path note and also fix the screen to use a solid background instead of a missing texture:
Here’s a summary of the full mod structure:
RPG Anvil — Complete Feature Overview
Block & GUI
Craft/place the RPG Anvil (iron-tier, found in Functional Items tab)
Right-click to open a custom GUI with two panels: Enchantments (left) and Skills (right)
Drop a weapon into the weapon slot, then click buttons to apply upgrades
All data is stored as NBT (
CUSTOM_DATAcomponent) and displayed as item lore
5 Enchantments
Enchantment | Effect | Max |
|---|---|---|
Damage | +1 flat damage per level | 10 |
Element | Sets weapon element (Water/Fire/Earth/Wind/Dark/Light) | — |
Element Damage | +1 elemental damage + ambient particle effect | 10 |
Critical Damage | +1 bonus crit damage | 10 |
Critical Chance | +3% crit chance per level | 10 |
8 Skills (right-click to activate, passive for Vampire)
Skill | Requirement | Effect |
|---|---|---|
Amaterasu | Fire + EDmg 5 | Black soul-fire on target, wither DoT, scales per level |
Vampire | None | On-hit: heal % of damage dealt, chance-based, heart particles |
Ender Eye | None | Teleport behind target, portal/ender particles + sound |
Whirlwind | Wind + EDmg 5 | AoE knockback + nausea, tornado spiral particles |
Tsunami | Water + EDmg 5 | AoE drowning damage + slowness, wave particles |
Earthquake | Earth + EDmg 10 | Opens 3×10 crack, traps players → suffocation + mining fatigue |
Blinding Light | Light + EDmg 5 | Blindness + instant damage, flashbang flash + bell sound |
Black Hole | Dark + EDmg 10 | 30s gravitational pull, max slowness, core damage, swirl particles |
when compiling, it says that one file is missing
Please share the compilation error output so I can see exactly which file or class is missing.
It says "Compilation error, missing required files"
That error message is too generic to pinpoint the issue. Could you share the full error output from the compiler? It should look something like:
error: cannot find symbol
symbol: class SomeClassName
location: class com.rpganvil.SomeOtherClass
Or for Gradle:
> Task :compileJava FAILED
src/main/java/com/rpganvil/SomeFile.java:12: error: cannot find symbol
Run ./gradlew build (or gradlew.bat build on Windows) in your project folder and paste the full output here. That will tell me exactly which class/file is missing so I can create it precisely.
Incompatible mods found! net.fabricmc.loader.impl.FormattedException: net.fabricmc.loader.impl.discovery.ModResolutionException: Mod discovery failed! at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63) at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:204) at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:142) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:66) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) Caused by: net.fabricmc.loader.impl.discovery.ModResolutionException: Mod discovery failed! at net.fabricmc.loader.impl.discovery.ModDiscoverer.lambda$discoverMods$1(ModDiscoverer.java:155) at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) at net.fabricmc.loader.impl.discovery.ModDiscoverer.discoverMods(ModDiscoverer.java:155) at net.fabricmc.loader.impl.FabricLoaderImpl.setup(FabricLoaderImpl.java:222) at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:199) ... 3 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Error analyzing [C:\Users\Gerrard\AppData\Roaming\.minecraft\mods\rpg-anvil-template-26.1.2.jar]: java.util.zip.ZipException: zip END header not found at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483) at java.base/java.util.concurrent.ForkJoinTask.getException(ForkJoinTask.java:559) at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:577) at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1019) at net.fabricmc.loader.impl.discovery.ModDiscoverer.discoverMods(ModDiscoverer.java:152) ... 5 more Caused by: java.lang.RuntimeException: Error analyzing [C:\Users\Gerrard\AppData\Roaming\.minecraft\mods\rpg-anvil-template-26.1.2.jar]: java.util.zip.ZipException: zip END header not found at net.fabricmc.loader.impl.discovery.ModDiscoverer$ModScanTask.compute(ModDiscoverer.java:300) at net.fabricmc.loader.impl.discovery.ModDiscoverer$ModScanTask.compute(ModDiscoverer.java:249) at java.base/java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:110) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187) Caused by: java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1693) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1701) at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1542) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1506) at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:704) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:204) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:150) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:164) at net.fabricmc.loader.impl.discovery.ModDiscoverer$ModScanTask.computeJarFile(ModDiscoverer.java:321) at net.fabricmc.loader.impl.discovery.ModDiscoverer$ModScanTask.compute(ModDiscoverer.java:290) ... 6 more
This isn’t a missing file error — the JAR itself is corrupted (zip END header not found). This means the build didn’t complete successfully, or the JAR was only partially written.
Fix steps:
Delete the corrupted JAR from your mods folder:
Plain TextC:\Users\Gerrard\AppData\Roaming\.minecraft\mods\rpg-anvil-template-26.1.2.jarIn your project folder, run a clean build:
Plain Text./gradlew clean build(On Windows:
gradlew.bat clean build)Check the build output — if there are compilation errors, paste them here and I’ll fix the code. The JAR only gets corrupted/incomplete when the build fails partway through.
If the build succeeds, copy the fresh JAR from
build/libs/into your mods folder.
The actual problem is almost certainly a Java compilation error that stopped the JAR from being fully written. Share the gradlew clean build console output and I’ll fix whatever is failing.
i think it's missing gradlew.bat
You’ll also need the Gradle wrapper JAR. Since that’s a binary, the easiest way to get it is:
Option A — Let Gradle download it automatically: Run this once in your project folder (requires Gradle installed globally):
gradle wrapper --gradle-version 8.8
Option B — Download the JAR manually:
Save it to
gradle/wrapper/gradle-wrapper.jarin your project
Then run:
gradlew.bat clean build
Paste the full build output here if you get any Java compilation errors.
where to run it
In your project folder. Here’s how:
Open File Explorer and find your project folder (wherever you created/saved the RPG Anvil mod)
Click the address bar at the top of File Explorer, type
cmd, press EnterIn the command prompt that opens, run:
Plain Textgradlew.bat clean build
The project folder is the one that contains build.gradle, gradlew.bat, and src/. If you’re not sure where it is, tell me how you set up the project (e.g. did you use a template, IntelliJ, VS Code?) and I’ll guide you to the exact path.
should I download jdk 25 or 26 and if I do which one
Neither — for Fabric 1.21.x (loader 0.16 / API 0.100+) you need JDK 21.
Download:
Pick JDK 21 (LTS), your OS (Windows), x64,
.msiinstallerInstall it
After installing, verify it worked:
java -version
Should say openjdk version "21.x.x".
Then run your build:
gradlew.bat clean build
JDK 25/26 are non-LTS bleeding-edge releases — Fabric’s toolchain and Gradle will reject them or behave unpredictably. JDK 21 is the correct choice.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Gerrard\Downloads\RPGAnvil-1780143159232\build.gradle' line: 2
* What went wrong:
Plugin [id: 'fabric-loom', version: '1.7-SNAPSHOT'] was not found in any of the following sources:
- Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.8/userguide/plugin_reference.html in the Gradle documentation.)
- Included Builds (No included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'fabric-loom:fabric-loom.gradle.plugin:1.7-SNAPSHOT')
Searched in the following repositories:
Gradle Central Plugin Repository
* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
BUILD FAILED in 28s
I got this message
The settings.gradle file is missing — it’s needed to tell Gradle where to find the Fabric plugin repository.
Also let me check and fix the build.gradle to make sure the loom version is stable (not SNAPSHOT):
Now create the settings.gradle:
Now run again:
gradlew.bat clean build
The two fixes:
settings.gradle— tells Gradle to look athttps://maven.fabricmc.net/for the Fabric Loom pluginLoom version changed from
1.7-SNAPSHOT→1.9.2(stable release)
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
The gradle-wrapper.jar is missing. Download it directly:
Go to this URL in your browser and save the file:
Plain Texthttps://github.com/gradle/wrapper-validation-action/releases/download/v3.5.0/gradle-wrapper.jarThat won’t work — use this instead:
Easiest fix — use your global Gradle to regenerate the wrapper:
First check if Gradle is installed globally:
Plain Textgradle -versionIf it prints a version, run:
Plain Textgradle wrapper --gradle-version 8.8This auto-creates
gradle/wrapper/gradle-wrapper.jarfor you.Then run:
Plain Textgradlew.bat clean build
If gradle is not installed globally:
Download Gradle manually:
Go to: https://gradle.org/releases/ → download Gradle 8.8 binary-only ZIP
Extract it somewhere (e.g.
C:\gradle)Run:
Plain TextC:\gradle\gradle-8.8\bin\gradle.bat wrapper --gradle-version 8.8Then run
gradlew.bat clean build
* What went wrong:
A problem occurred configuring root project 'rpganvil'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve net.fabricmc:fabric-loom:1.8-SNAPSHOT.
Required by: project : > fabric-loom:fabric-loom.gradle.plugin:1.8-SNAPSHOT:20241126.112513-13 > Plugin net.fabricmc:fabric-loom:1.8-SNAPSHOT:20241126.112513-13 requires at least Gradle 8.10. This build uses Gradle 8.8.
* Try: > Upgrade to at least Gradle 8.10. See the instructions at https://docs.gradle.org/8.8/userguide/upgrading_version_8.html#sub:updating-gradle. > Downgrade plugin net.fabricmc:fabric-loom:1.8-SNAPSHOT:20241126.112513-13 to an older version compatible with Gradle 8.8. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
BUILD FAILED in 12s
Upgrade the Gradle wrapper to 8.10. Run this:
gradle wrapper --gradle-version 8.10
Then build again:
gradlew.bat clean build
* What went wrong:
Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details.
* Try: > Run with --info option to get more log output. > Run with --scan to get full insights.
📄
pasted-code-1780144788972.txt
txt
388 lines
▶
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\block\RPGAnvilBlock.java:11: error: cannot find symbol
import net.minecraft.state.property.DirectionProperty;
^
symbol: class DirectionProperty
location: package net.minecraft.state.property
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\block\RPGAnvilBlock.java:22: error: cannot find symbol
public static final DirectionProperty FACING = Properties.HORIZONTAL_FACING;
^
symbol: class DirectionProperty
location: class RPGAnvilBlock
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\handler\UseItemHandler.java:13: error: cannot find symbol
import net.minecraft.util.TypedActionResult;
^
symbol: class TypedActionResult
location: package net.minecraft.util
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\handler\UseItemHandler.java:19: error: cannot find symbol
public TypedActionResult interact(PlayerEntity player, World world, Hand hand) {
^
symbol: class TypedActionResult
location: class UseItemHandler
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:3: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:4: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffectInstance;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:5: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffects;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:6: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:7: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:9: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:10: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:11: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:12: error: package net.minecraft.core does not exist
import net.minecraft.core.BlockPos;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:13: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:14: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:26: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class BlackHoleSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:26: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class ServerLevel
location: class BlackHoleSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:39: error: cannot find symbol
final ServerLevel world;
^
symbol: class ServerLevel
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:40: error: cannot find symbol
final Vec3 center;
^
symbol: class Vec3
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:41: error: cannot find symbol
final Player caster;
^
symbol: class Player
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:45: error: cannot find symbol
BlackHoleData(ServerLevel world, Vec3 center, Player caster, int duration) {
^
symbol: class ServerLevel
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:45: error: cannot find symbol
BlackHoleData(ServerLevel world, Vec3 center, Player caster, int duration) {
^
symbol: class Vec3
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlackHoleSkill.java:45: error: cannot find symbol
BlackHoleData(ServerLevel world, Vec3 center, Player caster, int duration) {
^
symbol: class Player
location: class BlackHoleData
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:3: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:4: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffectInstance;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:5: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffects;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:6: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:7: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:8: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:9: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:10: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:11: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:12: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:18: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class BlindingLightSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:18: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class ServerLevel
location: class BlindingLightSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:44: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class Player
location: class BlindingLightSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:44: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class ServerLevel
location: class BlindingLightSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\BlindingLightSkill.java:44: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class LivingEntity
location: class BlindingLightSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:3: error: package net.minecraft.world.level.block.state does not exist
import net.minecraft.world.level.block.state.BlockState;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:4: error: package net.minecraft.world.level.block does not exist
import net.minecraft.world.level.block.Blocks;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:5: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:6: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffectInstance;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:7: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffects;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:8: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:9: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.BlockParticleOption;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:10: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:11: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:12: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:13: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:14: error: package net.minecraft.core does not exist
import net.minecraft.core.BlockPos;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:15: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:16: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:23: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:23: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class ServerLevel
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:65: error: cannot find symbol
private static void scheduleClose(ServerLevel world, List positions, List states,
^
symbol: class ServerLevel
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:65: error: cannot find symbol
private static void scheduleClose(ServerLevel world, List positions, List states,
^
symbol: class BlockPos
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:65: error: cannot find symbol
private static void scheduleClose(ServerLevel world, List positions, List states,
^
symbol: class BlockState
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EarthquakeSkill.java:66: error: cannot find symbol
Player attacker, int delayTicks) {
^
symbol: class Player
location: class EarthquakeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:3: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:4: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:5: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:6: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:7: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:8: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:9: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:10: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:16: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class EnderEyeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:16: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class ServerLevel
location: class EnderEyeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:45: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class Player
location: class EnderEyeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:45: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class ServerLevel
location: class EnderEyeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\EnderEyeSkill.java:45: error: cannot find symbol
private static LivingEntity findTarget(Player player, ServerLevel world, double range) {
^
symbol: class LivingEntity
location: class EnderEyeSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:3: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:4: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffectInstance;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:5: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffects;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:6: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:7: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:8: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:9: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:10: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:11: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:12: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:18: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:18: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class ServerLevel
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:54: error: cannot find symbol
private static void scheduleDrowningDamage(ServerLevel world, LivingEntity target, Player player, int seconds) {
^
symbol: class ServerLevel
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:54: error: cannot find symbol
private static void scheduleDrowningDamage(ServerLevel world, LivingEntity target, Player player, int seconds) {
^
symbol: class LivingEntity
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:54: error: cannot find symbol
private static void scheduleDrowningDamage(ServerLevel world, LivingEntity target, Player player, int seconds) {
^
symbol: class Player
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:58: error: cannot find symbol
private static void scheduleTick(ServerLevel world, LivingEntity target, Player player, int totalSeconds, int currentSecond) {
^
symbol: class ServerLevel
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:58: error: cannot find symbol
private static void scheduleTick(ServerLevel world, LivingEntity target, Player player, int totalSeconds, int currentSecond) {
^
symbol: class LivingEntity
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\TsunamiSkill.java:58: error: cannot find symbol
private static void scheduleTick(ServerLevel world, LivingEntity target, Player player, int totalSeconds, int currentSecond) {
^
symbol: class Player
location: class TsunamiSkill
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:3: error: cannot find symbol
import net.minecraft.world.entity.LivingEntity;
^
symbol: class LivingEntity
location: package net.minecraft.world.entity
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:4: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffectInstance;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:5: error: package net.minecraft.world.effect does not exist
import net.minecraft.world.effect.MobEffects;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:6: error: package net.minecraft.world.entity.player does not exist
import net.minecraft.world.entity.player.Player;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:7: error: package net.minecraft.core.particles does not exist
import net.minecraft.core.particles.ParticleTypes;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:8: error: package net.minecraft.server.level does not exist
import net.minecraft.server.level.ServerLevel;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:9: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundSource;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:10: error: package net.minecraft.sounds does not exist
import net.minecraft.sounds.SoundEvents;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:11: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.AABB;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:12: error: package net.minecraft.world.phys does not exist
import net.minecraft.world.phys.Vec3;
^
C:\Users\Gerrard\Downloads\RPGAnvil-1780144207694\src\main\java\com\rpganvil\skill\WhirlwindSkill.java:18: error: cannot find symbol
public static boolean activate(Player player, ServerLevel world, int level) {
^
symbol: class Player
location: class WhirlwindSkill
100 errors
Hi, I closed the window earlier, can you repeat the last command
I don’t have access to previous conversation sessions — each session starts fresh with no memory of past interactions.
Could you describe what you were working on? I’m happy to pick up right where you left off once you give me a bit of context!
[Generation stopped]
Add cost per upgrade, for enchantment will need 64 emeralds per level, and for Skills will need 64 blocks of emeralds per level
C:\Users\Gerrard\Downloads\RPGAnvil-1780295436663>gradlew.bat wrapper --gradle-version 8.11
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'RPGAnvil-1780295436663'. > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve net.fabricmc:fabric-loom:1.9.2.
Required by: project : > fabric-loom:fabric-loom.gradle.plugin:1.9.2 > Plugin net.fabricmc:fabric-loom:1.9.2 requires at least Gradle 8.11. This build uses Gradle 8.8.
* Try: > Upgrade to at least Gradle 8.11. See the instructions at https://docs.gradle.org/8.8/userguide/upgrading_version_8.html#sub:updating-gradle. > Downgrade plugin net.fabricmc:fabric-loom:1.9.2 to an older version compatible with Gradle 8.8. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
package com.rpganvil;
import com.rpganvil.block.ModBlocks;
import com.rpganvil.block.entity.ModBlockEntities;
import com.rpganvil.item.ModItems;
import com.rpganvil.network.ModPackets;
import com.rpganvil.screen.ModScreenHandlers;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.event.player.AttackEntityCallback;
import net.fabricmc.fabric.api.event.player.UseItemCallback;
import com.rpganvil.handler.AttackHandler;
import com.rpganvil.handler.UseItemHandler;
import com.rpganvil.handler.SkillTickHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RPGAnvilMod implements ModInitializer {
public static final String MOD_ID = "rpganvil";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
ModBlocks.register();
ModBlockEntities.register();
ModItems.register();
ModScreenHandlers.register();
ModPackets.registerServerPackets();
AttackEntityCallback.EVENT.register(new AttackHandler());
UseItemCallback.EVENT.register(new UseItemHandler());
ServerTickEvents.END_SERVER_TICK.register(new SkillTickHandler());
LOGGER.info("RPG Anvil initialized.");
}
}