// priority: 0

console.info('Hello, World! (You will only see this line once in console, during startup)')

onEvent('item.registry', event => {
	// Register new items here
	// event.create('example_item').displayName('Example Item')
	event.create('mechanized_rod').displayName('Mechanized Stick')
	//event.create('cooked_apple').food(food => {food.hunger(6).saturation(1)}).displayName('Cooked Apple').maxStackSize(64)
	event.create('glucose').displayName('Glucose Syrup').food(food => {food.hunger(10).saturation(10)})
	event.create('final_star').displayName('your did it')
	event.create('upgrade_1').displayName('Upgrade mk1').unstackable()
	event.create('upgrade_2').displayName('Upgrade mk2').unstackable()
	event.create('upgrade_3').displayName('Upgrade mk3').unstackable()
	event.create('upgrade_4').displayName('Upgrade mk4').unstackable()
	event.create('upgrade_5').displayName('Upgrade mk5').unstackable()
//	event.create('upgrade_6').displayName('Upgrade mk6').unstackable()
	event.create('upgrade_max').displayName('Upgrade Max').unstackable()
	event.create('discord').displayName('Discord Logo')
	event.create('cosmic_ring').displayName('Cosmic Ring').unstackable().tooltip('Hold in your offhand to gain the power of the stars')
})

onEvent('block.registry', event => {
	// Register new blocks here
	event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
	event.create('mechanized_block').material('wood').hardness(1.0).displayName('Mechanized Wood')
	event.create('mechanized_plank').material('wood').hardness(1.0).displayName('Mechanized Plank')
	event.create('mechanized_button').material('wood').hardness(1.0).displayName('Mechanized Button').tagBlockAndItem('minecraft:wooden_buttons').type('wooden_button')
	event.create('mechanized_slab').material('wood').hardness(1.0).displayName('Mechanized Slab').tagBlockAndItem('minecraft:wooden_slabs').type('slab')
	event.create('stone_bricks').material('stone').displayName('Stone Bricks').tagBlockAndItem('minecraft:stone_bricks')
	event.create('no_no_block').material('metal').displayName('No No')
	event.create('alloy_smelter').material('metal').displayName('Superior Alloy Smelter').texture(`kubejs:block/alloy_smelter`)
	event.create('condenser').material('metal').displayName('Condenser').texture(`kubejs:block/condenser`)
	event.create('theuniverse').material('metal').displayName('Energized Universe')
})

onEvent('fluid.registry', event => {
  event.create('liquid_mana')
    .textureThick(0x00FFFF)
    .bucketColor(0x00FFFF)
    .displayName('Liquid Mana')
  event.create('fire_dragon')
    .textureThick(0xEB5D10)
    .bucketColor(0xEB5D10)
    .displayName('Fire Dragon Blood')
  event.create('light_dragon')
    .textureThick(0xA700FC)
    .bucketColor(0xA700FC)
    .displayName('Lightning Dragon Blood')
  event.create('ice_dragon')
    .textureThick(0x1BCFFC)
    .bucketColor(0x1BCFFC)
    .displayName('Ice Dragon Blood')
})

/*
onEvent('block.modification', event => {
  event.modify('minecraft:grass_block', block => {
    
  })
})
*/

