PlayerEvents.loggedIn(event => {
  const player = event.player

  if (!player.stages.has('starting_items')) {
    player.stages.add('starting_items')

    player.give(Item.of('minecraft:cooked_beef', 64))
    player.give(Item.of('minecraft:torch', 16))
  }
})

  /* 
EXEMPLE CRAFT CRAFTING CORE
    event.custom({
        type: 'extendedcrafting:combination',
        powerCost: 1000,
        input: {
            item: 'minecraft:red_wool'
        },
        ingredients: [
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' }
        ],
        result: {
            item:'projecte:philosophers_stone'
        }
    })
EXEMPLE CRAFT DRACONIC EVOLUTION
    event.custom({
        type: "draconicevolution:fusion_crafting",
        result: {
          item: "projecte:philosophers_stone"
        },
        catalyst: {
          item: "minecraft:red_wool"
        },
        total_energy: 1000000, // en RF
        tier: "DRACONIUM", // ← ICI on définit le tier requis
        ingredients: [
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:cobblestone_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' },
            { item: 'allthecompressed:oak_log_1x' }
        ]
      })
EXEMPLE CRAFT MANA POOL

    event.custom({
        type: "botania:mana_infusion",
        input: {
          item: "minecraft:red_wool"
        },
        output: {
          item: "projecte:philosophers_stone"
        },
        mana: 50000, // quantité de mana nécessaire
    //catalyst: { type: "block", block: "botania:alchemy_catalyst" } // optionnel
      })

EXEMPLE CRAFT ULTIMATE 
    event.custom({
        type: 'extendedcrafting:shaped_table',
        "pattern": [
          "AAAAAAAAA",
          "AAAAAAAAA",
          "AABBBBBAA",
          "AABBBBBAA",
          "AABBCBBAA",
          "AABBBBBAA",
          "AABBBBBAA",
          "AAAAAAAAA",
          "AAAAAAAAA"
        ],
        "key": {
          "A": {
            "item": "allthecompressed:cobblestone_1x"
          },
          "B": {
            "item": "allthecompressed:oak_log_2x"
          },
          "C": {
            "item": "minecraft:red_wool"
          }
        },
        "result": {
          "item": 'projecte:philosophers_stone'
        }
      })

        event.shaped('powah:alternator_basic', [
    'IRI',
    'RER',
    'IRI'
  ], {
    I: 'minecraft:iron_ingot',
    R: 'minecraft:redstone',
    E: 'powah:energy_cell_basic' 
  }).id('kubejs:custom_flux_alternator_craft')

  EXEMPLE CRAFT MYSTICAL
        event.custom({
        type: "mysticalagriculture:infusion",
        input: { item: },
        ingredients: [
          { item:  },
          { item:  },
          { item:  },
          { item:  },
          { item:  },
          { item:  },
          { item:  },
          { item:  },
        ],
        result: { item: },
        craftingTime: 100
      })
*/