Hello, I'm trying to create a mod on Minecraft, but as soon as I try to launch my game I get this error.
Could someone please help me?
Here's the code for my items class
package fr.silenthill99.anime_mod.init;
import fr.silenthill99.anime_mod.Main;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
public class ModItems {
public static final Item TEST = createItem("test", new Item(new Item.Settings()));
private static Item createItem(String name, Item item) {
return Registry.register(Registries.ITEM, Identifier.of(Main.MOD_ID, name), item);
}
public static void registerItems() {
Main.LOGGER.info("Register Items for " + Main.MOD_ID);
}
}
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.