///////////////////////////////////////////////////////////
//______________________________________________________//
//___________________MADE BY SZUMASTER_________________//
//____________________________________________________//
///////////////////////////////////////////////////////

// priority: 1005

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

console.info('Shape Items')

events.listen('recipes', event => {

  event.remove({id: 'minecraft:tnt'})
  event.shapeless(item.of('minecraft:slime_ball', 1), ['minecraft:milk_bucket', 'minecraft:sugar', 'minecraft:wheat'])
  event.shapeless(item.of('minecraft:blaze_rod', 1), ['minecraft:gold_ingot', 'minecraft:stick', 'minecraft:nether_brick'])
  event.shapeless(item.of('minecraft:leather', 1), ['minecraft:rotten_flesh', 'minecraft:rotten_flesh', 'minecraft:rotten_flesh', 'minecraft:rotten_flesh', 'minecraft:rotten_flesh']) 

  event.shapeless(item.of('porkchop', 1), ['minecraft:rotten_flesh', 'minecraft:sugar'])
  event.shapeless(item.of('chicken', 1), ['minecraft:rotten_flesh', 'minecraft:melon_seeds'])
  event.shapeless(item.of('beef', 1), ['minecraft:rotten_flesh', 'minecraft:wheat_seeds'])
  event.shapeless(item.of('minecraft:phantom_membrane', 3), ['minecraft:rotten_flesh', 'minecraft:slime_ball', 'minecraft:leather'])
  event.shapeless(item.of('minecraft:egg', 1), ['minecraft:rotten_flesh', 'minecraft:slime_ball', 'minecraft:bone_meal'])
  
  event.shaped(item.of('minecraft:arrow', 1), [
    'S',
    'D',
    'D'
    ], {
    S: 'minecraft:iron_nugget',
    D: 'minecraft:stick'
  })


  event.shaped(item.of('minecraft:sheep_spawn_egg', 1), [
    'OOO',
    'OTO',
    'OPO'
    ], {
    O: 'minecraft:white_dye',
    P: 'minecraft:lead',
    T: 'minecraft:egg'
  })

  event.shaped(item.of('minecraft:cow_spawn_egg', 1), [
    'OOO',
    'OTO',
    'OPO'
    ], {
    O: 'minecraft:brown_dye',
    P: 'minecraft:lead',
    T: 'minecraft:egg'
  })

  event.shaped(item.of('minecraft:pig_spawn_egg', 1), [
    'OOO',
    'OTO',
    'OPO'
    ], {
    O: 'minecraft:pink_dye',
    P: 'minecraft:lead',
    T: 'minecraft:egg'
  })

  event.shaped(item.of('minecraft:horse_spawn_egg', 1), [
    'OOO',
    'OTO',
    'OPO'
    ], {
    O: 'minecraft:gray_dye',
    P: 'minecraft:lead',
    T: 'minecraft:egg'
  })


})
