#Custom Mechanical Crafting recipe not working

12 messages · Page 1 of 1 (latest)

agile moat
#

So I'm making a custom crafting using the Create KubeJS addon, and I'm getting this error:

[ERROR] ! main.js#17: Failed to create recipe for type 'create:mechanical_crafting': Unable to cast 'key:input_item_pattern_key' value '{LETTERS: 'and values'...}' to 'input_item_pattern_key'!

My server script is basically

ServerEvents.recipes(e => {
//A bunch of other recipes
//This one is getting the error vvvv
e.recipes.createMechanicalCrafting('kubejs:applied_star', [
  '    A    ',
  '   ABA   ',
  'AAACDEAAA',
  'ABFGHGIBA',
  ' AJKLMNA ',
  '  AGOGA  ',
  ' APQAQPA ',
  'ABRA ARBA',
  'AAA   AAA'
], {
  A: 'ae2:fluix_block',  
  B: 'ae2:singularity',  
  C: 'ae2:annihilation_core',  
  D: 'ae2:flawless_budding_quartz',  
  E: 'ae2:formation_core',  
  F: 'ae2:spatial_anchor',  
  G: 'ae2:controller',  
  H: 'ae2:item_storage_cell_256k',  
  I: 'ae2:crafting_terminal',   
  J: 'ae2:charged_staff',  
  K: 'appmek:chemical_storage_cell_256k',  
  L: 'ae2:cell_component_256k',  
  M: 'ae2things:disk_drive_256k',  
  N: 'ae2:entropy_manipulator ',  
  O: 'ae2:fluid_storage_cell_256k',    
  P: 'ae2:tiny_tnt',  
  Q: 'ae2:mysterious_cube',  
  R: 'aeinfinitybooster:infinity_card' 
})
//more recipes and finally,
}

What I think is weird is the fact that I have another recipe with the same shape and it works.. (The buggy one only has different ingredients)

More info:

  • MC Ver.: 1.20.1
  • Forge Ver.: 47.2.0
  • Need the modlist? Just ask for it!
  • I can also send the recipe that is similar to the problematic one and works

Note: If you note any similarity, I'm quite inspired by the ATM modpack.

Any help would be appreciated, thanks.

violet kayakBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

exotic ledge
#

event.recipes.create.mechanical_crafting

drifting barn
#

that shouldnt matter, its just the casing, but it calls the same methods

exotic ledge
agile moat
#

Yeah, I have another one that works using the one without underscores

#

I mean, e.recipes.createMechanicalCrafting

#

This is the one that works (same shape)

viscid trench
#

entropy manipulator (N entry) has an extra trailing space?

#

@agile moat

agile moat
#

Oh, didn't see that. Right now I can't test, but I'll try it later

agile moat
#

Yeah that was it. Thank you all for the help