Hello guys im hoping to get some guidance on where to start. I hope i am posting this on the right channel.
I have some experience with java programming and im looking to casually build some mods out of a hobby, for myself basically. I attempted to use Forge but their documentation is quite vague and I got lost.
So then i tried fabric which seemed to have a very user friendly documentation. I attempted to do the “Create your first item” section but it leads me to nowhere. The code snippets are very vague too. It doesnt say anything about imports for the classes its using and I am yet not familiar with the classes minecraft uses. For example, for this snippet
public static Item register(String name, Function<Item.Settings, Item> itemFactory, Item.Settings settings) {
// Create the item key.
RegistryKey<Item> itemKey = RegistryKey.of(RegistryKeys.ITEM, Identifier.of(FabricDocsReference.MOD_ID, name));
// Create the item instance.
Item item = itemFactory.apply(settings.registryKey(itemKey));
// Register the item.
Registry.register(Registries.ITEM, itemKey, item);
return item;
}
}
the settings.registryKey(itemKey), where the hell the settings is comming from ?
Anyways i appreciate some light on where to start if not at this documentations.
Thank you !