// LevelEvents.loaded((event) => {
//     console.log(event)
//     console.log("LEVEL TRIGGER")
//     let level = event.getLevel()

//     // Set the maximum range for chunks to load
//     var maxChunks = 64

//     // Iterate through chunk coordinates (x, z) from 0 to maxChunks
//     for (let x = 0; x < maxChunks; x++) {
//         for (let z = 0; z < maxChunks; z++) {
//             // Get the chunk at (x, z)
//             let chunk = level.getChunk(x, z)

//             // Iterate through each block in the chunk (within a specific range)
//             for (let i = 0; i < 16; i++) {  // X coordinate (0-15) in the chunk
//                 for (let j = 0; j < 128; j++) {  // Y coordinate (0-127) in the chunk (adjust height as necessary)
//                     for (let k = 0; k < 16; k++) {  // Z coordinate (0-15) in the chunk
//                         // Create a BlockPos for the current coordinates
//                         let pos = new BlockPos(i, j, k)

//                         // Get the block state at the specific coordinates
//                         let blockState = chunk.getBlockState(pos)

//                         // If the block state is a titanium ore, replace it with the new block state
//                         if (blockState.id == 'grave.core:titanium_ore') {
//                             chunk.setBlockState(pos, 'arrzenhanced:titanium_ore')
//                         }
//                     }
//                 }
//             }
//         }
//     }
// })