onEvent("recipes", (event) => {

//Rock Crystal
event.remove({ output: 'astralsorcery:rock_crystal' })
event.shaped('astralsorcery:rock_crystal', [
'ABC',
'BDB',
'CBA'
], {
  A: 'thermal:blizz_powder',
  B: 'astralsorcery:marble_raw',
  C: '#forge:gems/fluix',
  D: 'powah:crystal_niotic'
})

//From Essence

event.shaped('astralsorcery:rock_crystal', [
'AAA',
'AAA',
'AAA'
], {
  A: 'mysticalagriculture:rock_crystal_essence'
})

//Luminous Crafting Table
event.remove({ output: 'astralsorcery:altar_discovery' })
event.custom(
  {
  "type": "powah:energizing",
  "ingredients": [
	{
	  "item": 'minecraft:crafting_table'
	},
	{
	  "item": 'torchmaster:frozen_pearl'
	},
	{
	  "item": 'astralsorcery:marble_raw'
	},
	{
	  "item": 'astralsorcery:marble_raw'
	},
	{
	  "item": 'astralsorcery:rock_crystal'
	},
	{
	  "item": 'powah:crystal_nitro'
	}
  ],
  "energy": 10000000,
  "result": {
	"item": 'astralsorcery:altar_discovery',
	"count": 1
  }
}
)

//Constellation Paper

event.custom(
  {
  "type": "astralsorcery:altar",
  "altar_type": 0,
  "duration": 100,
  "starlight": 200,
  "pattern": [
    "_____",
    "_ABA_",
    "_CBC_",
    "_ABA_",
    "_____"
  ],
  "key": {
    "A": {
      "item": 'powah:crystal_spirited'
    },
    "B": {
      "item": 'astralsorcery:parchment'
    },
    "C": {
      "item": 'astralsorcery:aquamarine'
    }
  },
  "output": [
    {
      "item": 'astralsorcery:constellation_paper',
      "count": 1
    }
  ],
  "effects": [
    "astralsorcery:built_in_effect_discovery_central_beam",
    "astralsorcery:altar_default_sparkle",
    "astralsorcery:built_in_effect_constellation_lines"
  ]
}
)

//Resonating Wand
event.remove({ output: 'astralsorcery:wand' })
event.shaped('astralsorcery:wand', [
' BD',
' AB',
'A  '
], {
  A: 'astralsorcery:marble_raw',
  B: 'astralsorcery:aquamarine',
  D: 'powah:crystal_niotic'
})

//Starmetal Ore
event.custom(
  {
  "type": "astralsorcery:altar",
  "altar_type": 1,
  "duration": 100,
  "starlight": 200,
  "pattern": [
    "D___D",
    "_ACA_",
    "_CBC_",
    "_ACA_",
    "D___D"
  ],
  "key": {
    "A": {
      "tag": 'forge:dusts/iron'
    },
    "B": {
      "item": 'minecraft:stone'
    },
    "C": {
      "item": 'astralsorcery:nocturnal_powder'
    },
    "D": {
      "item": 'astralsorcery:rock_crystal'
    }
  },
  "output": [
    {
      "item": 'astralsorcery:starmetal_ore',
      "count": 1
    }
  ],
  "effects": [
    "astralsorcery:built_in_effect_constellation_finish",
    "astralsorcery:built_in_effect_discovery_central_beam",
    "astralsorcery:altar_default_sparkle",
    "astralsorcery:built_in_effect_constellation_lines",
    "astralsorcery:built_in_effect_attunement_sparkle"
  ]
}
)

//Stardust
event.custom(
{"type":"mekanism:crushing","input":{"ingredient":{"item":'astralsorcery:starmetal_ingot'}},"output":{"item":'astralsorcery:stardust'}}
)
})
