create a mod for multiplayer servers that adds 2 things. 1 is called a hunter's mark which is an item that can be crafted like this:
Emerald | Ancient Debris | Emerald Ancient Debris | Netherite Ingot | Ancient Debris Emerald | Ancient Debris | Emerald
the job of this item is that if someone right clicks another player (call the player victim) with it, they get a 10 minutes long glow effect that is impossible to remove even using milk wont help. and if the person dies during this 10 minutes duration they respawn without the glow effect but you are told the coordinates of their death location in a way only visible to you. this glow effect can only be seen by the person who used hunter's mark on the victim. during the 10 minutes the player can see the glow from 5000 blocks away at most. after 10 minutes the glow is instantly removed. it must be ensured that the victim does not know someone used hunter's mark on them.
the appearance of the hunter's mark must be like a diamond sword and must have no animations, this will help ensure that the victim has no clue they just got marked. the hunter's mark must only have the texture of a sword but it should not work like an actual sword.
The 2nd item is called "The Chance" and its recipe is:
Gold ingot | Gold ingot | Gold ingot Gold ingot | Diamond Block | Gold Ingot Gold Ingot | Gold Ingot | Gold Ingot
The purpose of this item is that when you craft it and the right click on it, a text appears on your screen, the text says you have chosen to gamble. After using the chance, you get a 15 minutes long effect called Gambler. The icon of the gambler is a coin. while you have the gambler effect, if you kill someone, a few things may happen with different odds 20% chance: Jackpot - you get a diamond chestplate with protection 3, unbreaking 3 and mending. 30% Chance: waste - your chances have betrayed you, you are rewarded nothing for the gamble. 10% Chance: Punishment - The gambling was not in your favour, you are given slowness 1 for 20 seconds. 40% Chance - A Sniper! You are rewarded with a 32 Steak and a Punch 2, Power 5 Bow and 16 arrows.
If The person gets a reward but they dont have enough space in their inventory to hold it, the items are transferred to a virtual chest called The Storage. the player can type /ChanceStorage at any time and a menu will open that allows them to take any item from the storage. the storage only has 9 slots and if someone gets a reward while having all 9 slots And their inventory full, their reward is nullified and they get nothing. they are simply warned that they got rewarded but they got nothing because their inventory and Storage was full. they should be told to use /ChanceStorage and take out their rewards so they get their rewards next time
The Appearence of The Chance is a Custom Texture that is a Gold Coin
All The Messages Related to The 2 Items MUST only be shown in Chat AND ONLY SHOWN to THE USER OF HUNTER'S MARK OR THE CHANCE.
Create the Fabric 26.2 project scaffold and registries.
Implement Hunter’s Mark with private client-side glow tracking, expiry, death coordinates, and recipe.
Implement The Chance, Gambler effect, kill rewards, nine-slot storage, command, GUI, and recipes.
Add client resources, metadata, permissions, and required assets.
Created a Fabric 26.2 Java 25 project scaffold with official 26.2 names and split client/common source sets.
Added Hunter’s Mark:
Correct crafting recipe.
Right-click player targeting.
Private hunter-only glow tracking.
5,000-block visibility limit.
Ten-minute expiry.
Glow removed on victim death or expiry.
Hunter-only death coordinates in chat.
Added The Chance:
Correct crafting recipe.
Gambler effect lasting 15 minutes.
Kill reward odds: jackpot, waste, punishment, or sniper supplies.
Added
/ChanceStoragewith a nine-slot virtual inventory and reward overflow handling.Added item models, client item definitions, translations, networking, menu registration, and client-side mark tracking.
The compilation failed with this error:
[FABRIC] Compiling 17 Java files for MC 26.2 (release 25)
[ERROR] Compilation failed
/workspace/src/main/java/com/kodari/chance/reward/ChanceManager.java:16: error: cannot find symbol
import net.minecraft.world.item.Enchantment;
^
symbol: class Enchantment
location: package net.minecraft.world.item
/workspace/src/main/java/com/kodari/chance/reward/ChanceManager.java:17: error: cannot find symbol
import net.minecraft.world.item.Enchantments;
^
symbol: class Enchantments
location: package net.minecraft.world.item
/workspace/src/main/java/com/kodari/chance/reward/ChanceManager.java:78: error: cannot find symbol
private static void addEnchantments(ServerPlayer player, ItemStack stack, int level, ResourceKey<Enchantment>... keys) {
^
symbol: class Enchantment
location: class ChanceManager
/workspace/src/main/java/com/kodari/chance/storage/ChanceStorageManager.java:6: error: cannot find symbol
import net.minecraft.world.inventory.SimpleMenuProvider;
^
symbol: class SimpleMenuProvider
location: package net.minecraft.world.inventory
4 errors
Please fix this error by creating a new artifact with the corrected code.
Move the enchantment imports to the 26.2 enchantment package.
Move
SimpleMenuProviderto its 26.2 package.Produce the corrected project artifact.
Created a corrected artifact with these fixes:
EnchantmentandEnchantmentsnow import fromnet.minecraft.world.item.enchantment.SimpleMenuProvidernow imports fromnet.minecraft.world.
Updated files:
src/main/java/com/kodari/chance/reward/ChanceManager.javasrc/main/java/com/kodari/chance/storage/ChanceStorageManager.java
package com.kodari.chance;
import com.kodari.chance.command.ChanceCommands;
import com.kodari.chance.effect.ModEffects;
import com.kodari.chance.item.ModItems;
import com.kodari.chance.mark.MarkManager;
import com.kodari.chance.network.ModNetworking;
import com.kodari.chance.reward.ChanceManager;
import com.kodari.chance.storage.ModMenus;
import net.fabricmc.api.ModInitializer;
public final class ChanceMod implements ModInitializer {
public static final String MOD_ID = "chance";
@Override
public void onInitialize() {
ModItems.initialize();
ModEffects.initialize();
ModMenus.initialize();
ModNetworking.initialize();
ChanceCommands.initialize();
MarkManager.initialize();
ChanceManager.initialize();
}
}