ServerEvents.recipes(event => {
  const GEMS = {
    blue:  'xycraft_world:xychorium_storage_blue',
    green: 'xycraft_world:xychorium_storage_green',
    red:   'xycraft_world:xychorium_storage_red',
    dark:  'xycraft_world:xychorium_storage_dark',
    light: 'xycraft_world:xychorium_storage_light'
  };
  const KIVI = 'xycraft_world:kivi';

  event.shaped('minecraft:end_portal_frame', [
    'KBK',
    'ROG',
    'DTL'
  ], {
    K: KIVI,
    B: GEMS.blue,
    R: GEMS.red,
    G: GEMS.green,
    D: GEMS.dark,
    L: GEMS.light,
    O: 'scguns:nether_star_fragment',
    T: 'nuclearcraft:thorium_block'
  }).id('custom:end_portal_frame/xychorium_kivi_elements');
});