item cannot be resolved to a variable
snappie321 opened this issue ยท 1 comments
I'm getting this error, fixes on internet don't seem to work.
package net.testmod;
import org.apache.http.config.Registry;
import com.mojang.datafixers.TypeRewriteRule.One;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.registry.Registries;
import net.minecraft.util.Identifier;
public class Testmod implements ModInitializer {
public static final Item CUSTOM_ITEM = new Item(new FabricItemSettings());
@Override
public void onInitialize() {
Registry.register(Registries.ITEM, new Identifier("testmod", "fabric_item"), Ruby_item);
}
}
Its for 1.19.4 and im just trying out
๐ We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.