#Removes default red matter recipe
craftingTable.removeRecipe(<item:projecte:red_matter>);

#Custom script for red matter
craftingTable.addShaped("red_matter", <item:projecte:red_matter>, [
[<item:mysticalagradditions:insanium_essence>, <item:draconicevolution:small_chaos_frag>, <item:mysticalagradditions:insanium_essence>], 
[<item:projecte:dark_matter>, <item:projecte:dark_matter>, <item:projecte:dark_matter>], 
[<item:mysticalagradditions:insanium_essence>, <item:draconicevolution:small_chaos_frag>, <item:mysticalagradditions:insanium_essence>] 
]);

#Re-adds the one of the original recipes
craftingTable.addShapeless("red_matter_from_block", <item:projecte:red_matter> * 4, [<item:projecte:red_matter_block>]);