async function resetState () {
    await becomeCreative()
    await clearInventory()
    bot.creative.startFlying()
    await teleport(new Vec3(0, bot.test.groundY, 0))
    await bot.waitForChunksToLoad()
    await resetBlocksToSuperflat()
    await sleep(1000)
    await clearInventory()
  }
// always leaves you in creative mode
always leaves you in creative mode
always leaves you in creative mode
async function resetState () {
    await becomeCreative()
    await clearInventory()
    bot.creative.startFlying()
    await teleport(new Vec3(0, bot.test.groundY, 0))
    await bot.waitForChunksToLoad()
    await resetBlocksToSuperflat()
    await sleep(1000)
    await clearInventory()
  }
async function resetState ( ) { await becomeCreative ( ) await clearInventory ( ) bot . creative . startFlying ( ) await teleport ( new Vec3 ( 0 , bot . test . groundY , 0 ) ) await bot . waitForChunksToLoad ( ) await resetBlocksToSuperflat ( ) await sleep ( 1000 ) await clearInventory ( ) }
always leaves you in creative mode
always leaves you in creative mode