// priority: 0

settings.logAddedRecipes = true
settings.logRemovedRecipes = true
settings.logSkippedRecipes = false
settings.logErroringRecipes = true

onEvent('player.logged_in', event => {
    // Check if player doesn't have "starting_items" stage yet
    if (!event.player.stages.has('starting_items_new')) {
      // Add the stage
      event.player.stages.add('starting_items_new')
      // Give some items to player
      event.player.give(Item.of('dark_caverns:hellstone_helmet', '{Damage:0}').enchant('minecraft:respiration', 3).enchant('minecraft:unbreaking', 4).enchant('minecraft:projectile_protection', 4).enchant('minecraft:aqua_affinity', 1))
      event.player.give(Item.of('dark_caverns:hellstone_chestplate', '{Damage:0}').enchant('minecraft:thorns', 1).enchant('minecraft:unbreaking', 2).enchant('minecraft:blast_protection', 2).enchant('minecraft:protection', 2))
      event.player.give(Item.of('dark_caverns:hellstone_leggings', '{Damage:0}').enchant('apotheosis:rebounding', 1).enchant('minecraft:projectile_protection', 4).enchant('minecraft:unbreaking', 3))
      event.player.give(Item.of('dark_caverns:hellstone_boots', '{Damage:0}').enchant('minecraft:depth_strider', 3).enchant('apotheosis:stable_footing', 1).enchant('minecraft:unbreaking', 4).enchant('minecraft:blast_protection', 3).enchant('minecraft:protection', 4).enchant('minecraft:feather_falling', 5))
      event.player.give('ftbquests:book')
    }
    
    event.player.paint({
        name: {
          type: 'text',
          text: `${event.player.name.string}`,
          scale: 1,
          x: -5,
          y: 12,
          alignX: 'right',
          alignY: 'center',
          color: '#03F338',
          draw: 'ingame'//ingame
      },
        
        welcome: {
          type: 'text',
          text: 'SkyBridgeCraft',
          scale: 1,
          x: -1,
          y: 0,
          alignX: 'right',
          alignY: 'center',
          color: '#F0F014',
          draw: 'ingame'//always
      }
          
        
      })
  })
