Hey, i just got into java modding and learned the language like 3 days ago, so this is probably a dumb question but im trying to make a sword. The fabric documentation says to create a sword like this
public static final Item ENDERIUM_SWORD = register(
"enderium_sword",
settings -> new SwordItem(ENDERIUM_TOOL_MATERIAL, 1f, 1f, settings),
new Item.Settings()
);
but for some reason, it says it cant resolve the symbol SwordItem. I've seen lots of other people using SwordItem and they have an import for it at
import net.minecraft.item.SwordItem;
but one, IntelliJ doesnt automatically add that and when i manually add that it says
No libraries found for 'net.minecraft.item.SwordItem
Anyone know why this happenes? The version is 1.21.5