Skip to content

Unable to add customs sells. #243

Closed
Closed

Description

@Kiraxarik

Minecraft Version

1.21.1 (LTS)

Mod Loader

NeoForge

Describe the Issue

Creating a datapack to add new items to the market does not add items.

Logs

latest.log

Activity

  1. added
    BugSomething isn't working as expected
    on Oct 14, 2025
  2. BlayTheNinth commented on Oct 14, 2025

    @BlayTheNinth
    Member

    [13Oct2025 20:03:09.960] [Render thread/ERROR] [net.blay09.mods.farmingforblockheads.FarmingForBlockheads/]: Error loading Farming for Blockheads market category file at farmingforblockheads:market_categories/enchanted_books.json
    java.lang.IllegalStateException: No key id in MapLike[{"item":"minecraft:book"}]

    Use "id" instead of "item" in your market category json.

  3. added
    SupportQuestions and other requests for help
    and removed
    BugSomething isn't working as expected
    on Oct 14, 2025
  4. Kiraxarik commented on Oct 14, 2025

    @Kiraxarik
    Author

    latest.log

    Ok, I fixed that, and another one that got missed with the recipe. I'm not finding any errors in the log, and the item shows up in the market, but the market category don't show up and the preset isn't working for the item.

    market_category
    Enchanted_Books.json

    market_preset
    Enchanted_Books.json

    recipe
    Enchanted_Book.json

  5. BlayTheNinth commented on Oct 15, 2025

    @BlayTheNinth
    Member
    • Make sure all your json file names are lowercase only, e.g. enchanted_books.json
    • For ingredient objects (e.g. in the market preset), "item" should remain "item", not "id"
    • The namespace of the category should match the namespace of your data pack
    • The namespace of the preset should match the namespace of your data pack

    Closing since thread has been moved to Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Minecraft 1.21.1Issues occurring in Minecraft 1.21.1NeoForgeIssues occurring on the NeoForge platformSupportQuestions and other requests for help

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions