Create an AI-powered Recipe Assistant for Minecraft that helps players whenever they forget how to craft an item. When a player types the command /recipe <item_name>, the assistant should instantly identify the requested item and display its complete crafting recipe directly in the chat. If the item cannot be crafted, the assistant should instead explain how the item can be obtained (for example, through smelting, trading, loot chests, mob drops, or other methods). The command must support every obtainable Minecraft item and block up to Minecraft version 1.21.11. Item name matching should be flexible, allowing players to use common names or minor spelling variations. The response should be fast, accurate, and easy to read, making it simple for players to find the information they need without leaving the game.
Building an AI-powered /recipe lookup plugin that dynamically pulls real crafting data from the server’s own recipe registry (so it always matches whatever Minecraft version the server runs, including 1.21.11) plus a curated fallback dataset for non-craftable items, with fuzzy name matching.
Plan:
build.gradle+plugin.yml— Paper API,/recipecommand.ItemMatcher— alias + fuzzy matching from user input toMaterial.RecipeFormatter— turns BukkitRecipeobjects into readable chat text.ObtainMethodData— curated fallback “how to obtain” data for non-craftable items.RecipeCommand+ main plugin class wiring it together.
Removed the invalid Material.RESISTANCE_POTION reference to avoid a compile error — potions aren’t Material items in that form:
I noticed I left an invalid enum placeholder — fixing that now before it breaks the build:
Let me now actually create the full project files.
RecipeAssistant is ready:
/recipe <item name>(aliases/craft,/howtocraft,/howtomake) with tab-completion.Recipes are pulled live from
Bukkit.getRecipesFor(...), so shaped, shapeless, furnace/smoker/blast/campfire, stonecutting, and smithing recipes are always accurate to whatever Minecraft version the server is actually running (1.21.11 included) — no hardcoded/stale recipe data.ItemMatcherresolves flexible/misspelled names via alias table + token matching + Levenshtein fuzzy distance, usingMaterial.matchMaterialso it stays version-safe.For non-craftable items,
ObtainMethodDatagives curated obtain instructions (mining, mob drops, fishing, trading, structure loot, natural generation); anything not in the curated list still gets a sensible generic fallback tip instead of silence.
package com.recipeassistant;
import com.recipeassistant.command.RecipeCommand;
import org.bukkit.plugin.java.JavaPlugin;
public class RecipeAssistant extends JavaPlugin {
@Override
public void onEnable() {
RecipeCommand recipeCommand = new RecipeCommand();
getCommand("recipe").setExecutor(recipeCommand);
getCommand("recipe").setTabCompleter(recipeCommand);
getLogger().info("RecipeAssistant enabled - /recipe <item name> is ready.");
}
}