#Beginners: Where to start ?

8 messages · Page 1 of 1 (latest)

smoky flume
#

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 !

cloud cliff
cunning moss
#

In this Minecraft Modding Tutorial, we are setting up our workspace for Minecraft 1.21 with Fabric!

== 1.21 MODDING COURSES ==
▶️ NeoForge Modding with Minecraft 1.21.X:
https://url.kaupenjoe.net/CourseNeoForge121X
▶️ Fabric Modding with Minecraft 1.21.X:
https://url.kaupenjoe.net/CourseFabric121X
▶️ Forge Modding with Minecraft 1...

▶ Play video
torn gust
smoky flume
#

yeah thats the thing my ide didnt pick em up and i didnt know where to look at but thank you for the video appreciate it

smoky flume
torn gust
#

you will not finds imports in the docs, like I've said you should be able to figure those out with your IDE. if your IDE can't suggests classes from minecraft then there is a problem with your project

#

hot did you create it?