// priority: 0

onEvent('item.registry', event => {
  event.create('ender_singularity').texture('kubejs:item/ender_singularity');
  event.create('fluxed_singularity').texture('kubejs:item/fluxed_singularity');
  event.create('crude_andesite_alloy').texture('kubejs:item/crude_andesite_alloy');
  event.create('silicon_die').texture('kubejs:item/silicon_die');

  event
    .create('incomplete_redstone_servo')
    .texture('kubejs:item/incomplete_redstone_servo')
    .type('create:sequenced_assembly');
  event
    .create('incomplete_rf_coil')
    .texture('kubejs:item/incomplete_rf_coil')
    .type('create:sequenced_assembly');

  ['logic', 'engineering', 'calculation'].forEach(x =>
    event
      .create(`incomplete_${x}_processor`)
      .texture(`kubejs:item/incomplete_${x}_processor`)
      .type('create:sequenced_assembly')
  );
});

onEvent('item.modification', event => {
  event.modify('corail_woodcutter:acacia_woodcutter', item => {
    item.maxStackSize = 1;
  });
});
