 
   game.mode = 'survival'
 
-  playerInventory = new Inventory(10, 5)
   #playerInventory.give new ItemPile('stick', 32)
   #playerInventory.give new ItemPile('logOak', 10)
   #playerInventory.give new ItemPile('plankOak', 10)

  inventoryHotbar = plugins.load 'inventory-hotbar', {inventory:playerInventory, inventorySize:10}

  inventoryDialog = plugins.load 'inventory-dialog', {playerInventory:playerInventory}

  workbenchDialog = plugins.load 'workbench', {playerInventory:playerInventory}

  REACH_DISTANCE = 8
  reach = game.plugins.load 'reach', { reachDistance: REACH_DISTANCE }

    ['tree.leaves', 'tree.leaves', 'tree.leaves'],
    [undefined, 'stick', undefined],
    [undefined, 'stick', undefined]], new ItemPile('pickaxeDiamond', 1))

  playerInventory = new Inventory(10, 5)

  # workbench - adds its own block (call before game.materials.load) and recipe
  workbenchDialog = plugins.load 'workbench', {playerInventory:playerInventory, registry:registry}


  game.materials.load registry.getBlockPropsAll 'texture'
