Common Issues - mehboss/CustomRecipes GitHub Wiki

Could not find configuration section CursedPick in the recipe file: CursedPick.yml - (CaSeSeNsItIvE) - Skipping this recipe

This error usually happens when the plugin can not find a section "CursedPick:" within the yml file. There must be a section that matches the file in order for the recipe to work.

Example

CursedPick:
  Enabled: true # Whether or not this recipe is enabled
  Shapeless: false # Whether or not you want it to have specific order in crafting
  Item: 'DIAMOND_PICKAXE' # Item ID
  Item-Damage: 'none' # Used for when you need a specific type of item with a "19/00" or "13:4". leave to none if non exists.
  Amount: 1 # When you craft this item, this is the amount you will get from it.
  Placeable: true # If it is a block, you can choose to make it unplaceable.
  Ignore-Data: false # Whether or not metadata should be considered as a requirement for crafting
  Ignore-Model-Data: false # Whether or not you want model data to be considered even if ignore-data is set to true
  Custom-Tagged: true # Whether or not you want this item to be tagged with a custom item tag.
  Durability: '100' # 1-100. Remove section if not needed.
  Identifier: 'CURSED_PICKAXE' # Give your new recipe an identifier :).

As you can see, at the very top of the CursedPick.yml file, there is a section that matches the name of the YML file -- "CursedPick:"

I tried to craft my recipe, but it isn't working. Please help!!

If you are encountering issues with your custom recipe, 9 times out of 10 console will let you know what happened. Whether it be a formatting issue, invalid enchantments, invalid material types, etc. If you still cannot figure out why it isn't working, please open up a new issue ticket for additional help.

I am getting an error when the plugin gets enabled and it looks something like this:

[21:16:33 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'customr' in plugin CustomRecipes v1.8.7
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1007) ~[paper-1.20.1.jar:git-Paper-137]
at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64) ~[paper-1.20.1.jar:git-Paper-137]
at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265) ~[paper-1.20.1.jar:?]
at net.minecraft.commands.Commands.performCommand(Commands.java:324) ~[?:?]
at net.minecraft.commands.Commands.performCommand(Commands.java:308) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2347) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$21(ServerGamePacketListenerImpl.java:2307) ~[?:?]
at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1339) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1316) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1309) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1287) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1175) ~[paper-1.20.1.jar:git-Paper-137]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-137]
at java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.IllegalStateException: Duplicate recipe ignored with ID customrecipes:cursed_sword
at net.minecraft.world.item.crafting.RecipeManager.addRecipe(RecipeManager.java:93) ~[?:?]
at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftShapelessRecipe.addToCraftingManager(CraftShapelessRecipe.java:47) ~[paper-1.20.1.jar:git-Paper-137]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.addRecipe(CraftServer.java:1541) ~[paper-1.20.1.jar:git-Paper-137]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.addRecipe(CraftServer.java:1507) ~[paper-1.20.1.jar:git-Paper-137]
at me.mehboss.recipe.RecipeManager.addItems(RecipeManager.java:440) ~[CustomRecipes(v1.8.7).jar:?]
at me.mehboss.recipe.Main.reload(Main.java:419) ~[CustomRecipes(v1.8.7).jar:?]
at me.mehboss.recipe.GiveRecipe.onCommand(GiveRecipe.java:107) ~[CustomRecipes(v1.8.7).jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]

This error is generated when one or more of your recipes have the same identifier set. Every recipe must have their own unique identifier. As you can see, the error states it is an "IllegalStateException: Duplicate recipe ignored with ID customrecipes:cursed_sword"