Skip to content

Improve Embedding of Example Mod #255

@keetsta

Description

@keetsta

Docs page: https://docs.fabricmc.net/develop/items/first-item

referencing fabric wiki, there should be a context for some points

1 - downloaded texture name is not matching the texture mapping name in the tutorial which should be equal
2 - in the fuel section, there is no clarification about the register context, in fabric wiki there is an example with context provided. Also, this is a frequent problem occuring in some other articles like Custom Groups

public class ExampleMod implements ModInitializer {
    // An instance of our new item, where the maximum stack size is 16
 
    // For versions below 1.21.2:
    public static final CustomItem CUSTOM_ITEM = register("custom_item", new CustomItem(new Item.Settings().maxCount(16)));
    // For versions since 1.21.2:
    public static final Item CUSTOM_ITEM = register("custom_item", CustomItem::new, new Item.Settings().maxCount(16));
    [...]
}

there's a lot of moments like this but i assume that you are planning to rewrite it for newer versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementA new addition to an already existing pageneeds-discussionFurther discussion is neededpriority:mediumThis should be addressed relatively quickly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions